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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
Adobe Summit 2023 | Complete list of AEM Sessions & Labs

Arrays and web services

Avatar

Level 1
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>

0 Replies

Avatar

Level 1
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