in reply to Syntax used by SOAP::Lite
I think adrianh explained what's going on with the method calls rather well, but if you don't feel comfortable with that syntax (I personally found it confusing when I started out), you can do:
my $soap = SOAP::Lite->new( uri => 'http://www.soaplite.com/Demo', proxy => 'http://services.soaplite.com/hibye.cgi', ); my $soap_result = $soap->hi(); print $soap_result->result();
(Yes, the result of a soap call isn't actually the result of the value that was returned by the method... it's actually a SOAP::SOM object)
As for the second part of your question, take a look at what '+autodispatch' does in the SOAP::Lite documentation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Syntax used by SOAP::Lite
by smeenz (Sexton) on Jun 03, 2005 at 22:15 UTC | |
by jhourcle (Prior) on Jun 04, 2005 at 17:16 UTC | |
by smeenz (Sexton) on Jun 04, 2005 at 19:53 UTC | |
by jhourcle (Prior) on Jun 04, 2005 at 22:24 UTC | |
by smeenz (Sexton) on Jun 04, 2005 at 23:38 UTC | |
by smeenz (Sexton) on Jun 03, 2005 at 22:50 UTC | |
by smeenz (Sexton) on Jun 03, 2005 at 22:59 UTC | |
by jhourcle (Prior) on Jun 04, 2005 at 02:20 UTC |