in reply to Error while receiving SOAP envelope from client
I'm not sure what the exact problem is, but I did notice something odd in your client:
my $s = SOAP::Lite ->uri('World') ->proxy('http://localhost/soap/soapserver.cgi') # vvvvvvvvvvvvvvvvvvvvvvvvvv ->GoodBye("Bad world") ->on_debug(sub{print@_}); # ^^^^^^^^^^^^^^^^^^^^^^^^^^ print $s->result();
The method call to the server GoodBye() returns a SOAP::SOM object (a response of sorts), and not the SOAP object (which is a link to the server), so you probably won't get debugging output from the call. I'd suggest instead using something like the following
my $soap = SOAP::Lite ->uri('World') ->proxy('http://localhost/soap/soapserver.cgi') ->on_debug(sub{warn @_}); $som = $soap ->GoodBye("Bad world"); if ( $som->fault ) { warn $som->faultcode() ||'', " : ", $som->faultstring()||'', " : ",$som->faultdetail()||'',"\n"; } else { print $som->result(); }
With debugging on, you should get both the HTTP headers that are sent, and the XML payload of the request and response.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Error while receiving SOAP envelope from client
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 |