Highlighted

Arrays and web services

bonob

16-09-2008

Hi, we're calling a java webservice and are trying to pass
data to it. Everything works except for arrays. When checking the
XML SOAP-ENV:BODY with WireShark we find that the values are not
encapsulated properly. For example if the webservice expects an
array of Strings:

myArray.push("Hello");

myArray.push("World");



will produce :

<strings>Hello</strings>

<strings>World</strings>



instead of sometihng like:

<array>

Replies

Highlighted

bonob

16-09-2008

ooops I hadn't finished ...



instead of sometihng like:

<array>

<string>Hello</string>

<string>World</string>

</array>



Has anyone ever tried to pass along an Array to a
webservice???



Thanks