wsdl snippet
<wsdl:message name="getMonitorSnapshotsRequest"><wsdl:part name="in0" +type="impl:ArrayOf_xsd_string"> </wsdl:part><wsdl:part name="in1" type="apachesoap:Map"> </wsdl:part><wsdl:part name="in2" type="xsd:string"> </wsdl:part><wsdl:part name="in3" type="xsd:string"> </wsdl:part><wsdl:part name="in4" type="xsd:string"> </wsdl:part></wsdl:message>
trying
$service = SOAP::Lite -> service('URL goes here'); $data = 'array data goes here'; $response = $service->getMonitorSnapshots($data,'','username','passwo +rd'); print $response;

In this instance the first parameter is an array of values and the second and third are single values. In particular the data for the first parameter is an array of paths to search in.

If I have 3 pahts that need to be in an wsdl array or type apachesoap:Map
/path/to/first/monitor
/path/to/second/monitor>
/path/to/third/monitor
How do I put those in an array that the web service will recognize in parameter in0? I just can't quite figure out how to format the array data in the first parameter so that its formatted correctly for the WSDL. Thanks for your help tried

In reply to passing arrays and maps in soap::WSDL by i2blind

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.