hi Monks, i am trying to create an interface between weird system, here is XML that i am expected to send:
<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>
now i wrote this little peace (not gonna include everyhitng for client, if needed, can drop everything)
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);
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!

In reply to how to use class reference with SOAP::Lite by winfinit

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.