Loading ...
Sorry, an error occurred while loading the content.

how to do multipple methods inside body?

Expand Messages
  • winfinit
    hello, i am trying to create structure like this
    Message 1 of 1 , Apr 22 11:43 AM
    • 0 Attachment
      hello,

      i am trying to create structure like this

      <soap:Body
      soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <tns:CommunityReserveTicket>
      <CommunityID xsi:type="xsd:int">5</CommunityID>
      <AgentSetupID xsi:type="xsd:int">11</AgentSetupID>
      <UseInfo href="#id1"/>
      <Code>PRODUCTCODE</Code>
      </tns:CommunityReserveTicket>
      <tns:AdminAPIUserInfo id="id1" xsi:type="tns:AdminAPIUserInfo">
      <strLoginID xsi:type="xsd:string">TestReserve</strLoginID>
      <CreditCardInfo href="#id2"/>
      </tns:AdminAPIUserInfo>
      <tns:AdminAPICreditCard id="id2"
      xsi:type="tns:AdminAPICreditCard">
      <eCCType xsi:type="tns:CARD_TYPE">CARD_DISCOVER</eCCType>
      </tns:AdminAPICreditCard>
      </soap:Body>
      </soap:Envelope>

      if i will try to do this

      @ar = ( SOAP::Data->name(blah=>'test1'),
      SOAP::Data->name(blah=>'test2'),
      SOAP::Data->name(blah=>'test3'),
      );

      $cl->call(@ar);

      that would product something like this:
      <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>
      <test2 xsi:type="xsd:string">test2</test2>
      <test3 xsi:type="xsd:string">test3</test3>
      </test1>
      </soap:Body>
      </soap:Envelope>

      i am not worried about first method, since i can define it via
      on_action, so i just need to create structure above, and i am not
      getting how i can accomplish that, please help
    Your message has been successfully submitted and would be delivered to recipients shortly.