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

creating a string array in soap lite

Expand Messages
  • Edward Kawas
    Hi, I have a soap serializer (server) that usually returns strings for most requests. However, for one request, it returns an array of strings. In the past, I
    Message 1 of 1 , Aug 8, 2008
    • 0 Attachment
      Hi,

      I have a soap serializer (server) that usually returns strings for most
      requests. However, for one request, it returns an array of strings.

      In the past, I believe that SOAP lite returned this response correctly. Now,
      however, it returns an
      <Array><item></item></Array>

      And as a result, we are losing java AXIS compatibility.

      I am trying to serialize the response like so:

      $_[3]->[0] = SOAP::Data->type( 'string' => $_[3]->[0] )
      if $_[3]->[0];
      $_[3]->[1] = SOAP::Data->type( 'string' => $_[3]->[1] )
      if $_[3]->[1];
      $_[3]->[2] = SOAP::Data->type( 'string' => $_[3]->[2] )
      if $_[3]->[2];
      $_[3]->[3] = SOAP::Data->type( 'string' => $_[3]->[3] )
      if $_[3]->[3];
      $_[3]->[4] = SOAP::Data->type( 'string' => $_[3]->[4] )
      if $_[3]->[4];

      Any ideas on how can I do it so that I return an array of Strings and not
      items?

      Thanks!

      Eddie
    Your message has been successfully submitted and would be delivered to recipients shortly.