winfinit has asked for the wisdom of the Perl Monks concerning the following question:
now i wrote this little peace (not gonna include everyhitng for client, if needed, can drop everything)<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <test1> <data>2</data> <wierd href="#id1"/> <test1> <wierd2 id="id1"> <someotherdata>10</someotherdata> <evenmorewierd href="#id2"/> <wierd2> <lastmethod id="id2"> <moredata>4</moredata> </lastmethod> </soap:Body> </soap:Envelope>
but that is not producing desired result, i never saw before multiple methods, or that kind of use of complex data types in SOAP, and all my tries are unsuccessful... please help!my @data = ( SOAP::Data->name('test1' => \SOAP::Data->value(SOAP::D +ata->name('data' => 2),SOAP::Data->name('wierd')->attr({'href'=>'#id1 +'}))), SOAP::Data->name('wierd2' => \SOAP::Data->value(SOAP:: +Data->name('someotherdata'=>10),SOAP::Data->name('evenmorewierd')->at +tr({'href'=>'#id2'}))->attr({'id'=>'id1'})), SOAP::Data->name('lastmethod' => \SOAP::Data->value(SO +AP::Data->name('moredata'=>4))->attr({id=>'id2'})) ); $cleint->on_action(sub{'https:/blah/wierdserver.asmx'}); $client->call(@data);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to use class reference with SOAP::Lite
by holli (Abbot) on Apr 22, 2008 at 22:28 UTC | |
|
Re: how to use class reference with SOAP::Lite
by jhourcle (Prior) on Apr 23, 2008 at 18:12 UTC |