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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

How to pass complex data type structure to WebService under mx:request?

Avatar

Level 1

From my Flex client, I need to pass data to a web service whose operation expects a complex data type with multiple layers of nesting structure. How can I populate the <mx:request> for the <mx:WebServices>? Any examples?

A couple of approaches come to my mind:

(1) construct ActionScript object to mimic the datatype expected by web service, and pass an instance of the AS object to mx:request; or
(2) construct an entire SOAP request body in XML and pass it into mx:request.

Does any of these (or both) work? If both work, which is the better way?

Thanks in advance for your input!

-William

2 Replies

Avatar

Employee

William,

Option 1!!! For sure.

Option 2 will just give you a headache

Avatar

Level 1

Thanks a lot for the rapid response, Marcel.

For further details on the maping between WS complexType structure and AS object, is there any specific requirement? such as naming, binding, structure of nesting, etc.

William

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now