Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I have a soap lite question. i'm supposed to match this xml schema
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv=" +ope/" xmlns:xsd="" xmlns:xsi="http://"> <soapenv:Body> <ns1:getIntervalData soapenv:encodingStyle="http://schemas.xmlsoap.o +rg/soap/encoding/" xmlns:ns1=" +OperationsService/1.0"> <resId xsi:type="xsd:string">CABZON_1_WINDA1</resId> <intervals xsi:type="soapenc:Array" soapenc:arrayType="ns2:Operatio +nInterval[2]" xmlns:ns2="" xmln +s:soapenc=""> <item href="#id0"/> <item href="#id1"/> </intervals> </ns1:getIntervalData> <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://sc" xsi:type="ns3:OperationInterval" xm +lns:soapenc="" xmlns:ns3="ht +tps://"> <operDate xsi:type="xsd:dateTime">2003-08-16T10:51:36.137Z</operDat +e> <hourEnding xsi:type="soapenc:int">16</hourEnding> <intervalId xsi:type="soapenc:int">6</intervalId> </multiRef> <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://sc" xsi:type="ns4:OperationInterval" xm +lns:ns4="" xmlns:soapenc="http: +//"> <operDate xsi:type="xsd:dateTime">2003-08-16T10:51:36.137Z</operDat +e> <hourEnding xsi:type="soapenc:int">16</hourEnding> <intervalId xsi:type="soapenc:int">5</intervalId> </multiRef> </soapenv:Body> </soapenv:Envelope>
for the life of me I can't figure out the array part of it. It gets into the wsdl file just fine. here is the perl code
# set this to what resId we want to use $resId = "met_tower"; @OperationInterval = qw(["2003-08-16T10:51:36.137Z", "16", "6"], ["2003-08-16T10:51:36.137Z", "16", "5"]); use SOAP::Lite; my $soap = SOAP::Lite ->service("file:OperationsService.wsdl") ->xmlschema('2001'); my $som = $soap->getIntervalData($resId, @OperationInterval); print $som;

In reply to Perl Soap:lite by hijinks

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

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2021-06-12 12:15 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (51 votes). Check out past polls.