Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Arrays and web services

Avatar

Avatar
Level 1
bonob
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
bonob
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
bonob
Level 1

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

Avatar

Avatar
Level 1
bonob
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
bonob
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
bonob
Level 1

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