bubles_88 has asked for the wisdom of the Perl Monks concerning the following question:
$svc = SOAP::Lite -> service('http://localhost:8000/Hello.wsdl') -> proxy('http://localhost:8000/Hello') -> on_action(sub {sprintf '%s/%s', @_}); $resp = $svc->Hello("Jimmy");
<readmore title ="See the code"> $resp = $svc->call(SOAP::Data->name('Hello') ->attr ({'xmlns'=>'sth'}) => SOAP::Data->name('')->value("Jimmy"));
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xsi=htt +p://www.w3.org/1999/XMLSchema-instance xmlns:SOAP-ENC=http://schemas. +xmlsoap.org/soap/encoding/ xmlns:SOAP-ENV="http://schemas.xmlsoap.org +/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-EN +V:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV +:Body><Hello xmlns="sth"><c-gensym3>Jimmy</c-gensym3></Hello></SOAP-E +NV:Body></SOAP-ENV:Envelope>
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xsi=htt +p://www.w3.org/1999/XMLSchema-instance xmlns:SOAP-ENC=http://schemas. +xmlsoap.org/soap/encoding/ xmlns:SOAP-ENV="http://schemas.xmlsoap.org +/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-EN +V:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV +:Body><Hello xmlns="sth">Jimmy</Hello></SOAP-ENV:Body></SOAP-ENV:Enve +lope>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl Web Service
by starX (Chaplain) on Jun 10, 2008 at 14:47 UTC | |
Re: Perl Web Service
by Anonymous Monk on Jun 11, 2008 at 07:02 UTC | |
by bubles_88 (Initiate) on Jun 11, 2008 at 13:50 UTC |