pysome has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
Now, i have to use a .Net's web service to get some data.
That server provides three method ,say: getID() getNum(xxx) getName(xxx)
The "getNum" method needs a parameter xxx which is a XML format. I use the module: SOAP::Lite;
That server provides three method ,say: getID() getNum(xxx) getName(xxx)
The "getNum" method needs a parameter xxx which is a XML format. I use the module: SOAP::Lite;
my $soap = SOAP::Lite ->uri('http://tempuri.org') ->on_action(sub{sprintf "%s/%s",@_}) ->proxy('http://xxx/a.asmx'); my $result = $soap->getID(); #It works
Why the "getNum" method can't work. because of the XML's parameter format only? Pls give me a hand.Thanks.# my $str = <<"XML"; <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <node> <nid>10</nid> </node> XML my $result = $soap->getNum($str); #It doesn't work --update
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl SOAP client
by olus (Curate) on Mar 24, 2009 at 11:16 UTC | |
by pysome (Scribe) on Mar 25, 2009 at 03:03 UTC | |
Re: Perl SOAP client
by ikegami (Patriarch) on Mar 25, 2009 at 04:06 UTC | |
by pysome (Scribe) on Mar 25, 2009 at 08:09 UTC | |
by ikegami (Patriarch) on Mar 25, 2009 at 14:49 UTC |
Back to
Seekers of Perl Wisdom