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

Re: [soaplite] passing an array to a foreign SOAP implementation

Expand Messages
  • Eric Bridger
    MessageItem is an array but you have overriden SOAP::Lite s autotyping by explicitly setting - type( xsd:string ). Leave that off and you should get a SOAP
    Message 1 of 2 , Feb 9, 2006
    • 0 Attachment
      MessageItem is an array but you have overriden SOAP::Lite's autotyping by
      explicitly setting ->type("xsd:string"). Leave that off and you should
      get a SOAP array.

      Eric


      Orlando Andico said:
      > there's lots of discussion about how to *parse* returned arrays or
      > complex types, but how do i send an array?
      >
      > byrne's sample code, which i modified as such:
      >
      > SOAP::Data->name(
      > "Message" => \SOAP::Data->value(
      > SOAP::Data->name( "MessageItem" => @payload )
      > ->type("xsd:string")
      > )
      > ) ->type("xsd:anyType"),
      >
      > doesn't quite work, it outputs the following XML:
      >
      > <Message xsi:type="xsd:anyType">
      > <MessageItem xsi:type="xsd:string">test message 2006-02-09
      > 18:42:56. The quick brown fox jumps over the lazy old dog's tail. Now
      > is the time for all good men to go take a bath. Dulce et decorum
      > p</MessageItem>
      >
      > <MessageItem xsi:type="xsd:string">ro Patria mori. Ad Majorem
      > Dei Gloriam. Ad Astra per Aspera.</MessageItem>
      > </Message>
      >
      > which is not how a SOAP array should look like...
      >
      >
      > Help! :P
      >
      >
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.