chanakya has asked for the wisdom of the Perl Monks concerning the following question:
Module /var/www/html/soap/World.pm#!/usr/bin/env perl5.8.6 use SOAP::Transport::HTTP; use World; SOAP::Transport::HTTP::CGI -> dispatch_to('World') -> handle;
After this I started the Apache server.package World; sub new { bless {}, shift; }; sub HelloPeople { my ($self) = @_; return "Answer from sub HelloPeople\n"; }; sub GoodBye { my ($self,$adjective) = @_; return "Goodbye $adjective \n"; } 1;
Everything's fine until this point. When I execute the client (soapClient.pl), It spews out the#!/usr/bin/env perl5.8.6 use SOAP::Lite; my $s = SOAP::Lite ->uri('World') ->proxy('http://localhost/soap/soapserver.cgi') ->HelloPeople() ->on_debug(sub{print@_}); print $s->result(); my $s = SOAP::Lite ->uri('World') ->proxy('http://localhost/soap/soapserver.cgi') ->GoodBye("Bad world") ->on_debug(sub{print@_}); print $s->result();
Anybody has any idea, why is that so.not well-formed (invalid token) at line 1, column 1, byte 1 at /usr/lo +cal/lib/perl5/site_perl/5.8.6/i686-linux/XML/Parser.pm line 187 #!/usr/bin/env perl5.8.6 use SOAP::Transport::HTTP; use World; SOAP::Transport::HTTP::CGI -> dispatch_to('World') -> handle; at soapClient.pl line 9
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error while receiving SOAP envelope from client
by gellyfish (Monsignor) on Mar 02, 2005 at 13:24 UTC | |
|
Re: Error while receiving SOAP envelope from client
by jhourcle (Prior) on Mar 02, 2005 at 14:06 UTC | |
by chanakya (Friar) on Mar 03, 2005 at 10:49 UTC | |
by Anonymous Monk on Jun 19, 2008 at 21:09 UTC | |
by Anonymous Monk on Apr 21, 2009 at 13:22 UTC | |
by Anonymous Monk on Apr 23, 2009 at 10:08 UTC | |
by fshrewsb (Acolyte) on Jan 12, 2010 at 15:03 UTC | |
by Anonymous Monk on Jul 14, 2010 at 10:13 UTC |