Hi Ben, I do the following to achieve this. Let’s say I have a Customer who can
have multiple Address objects. Compare Customer with your SelectedPlans and
Address with PlanNumber. My Customer AS class looks like this
(boring parts omitted) package
model { <your
imports ...> public
class Customer { <your
other attributes> public var addresses:Array
= new Array(); <and the rest ... The Address AS class is nothing more than
this: package
model { <your
imports ...> public
class Address { public
var street:String; public var
houseNumber:int = 0; <... you get the idea> To store multiple Address objects into the
Customer object, you just fill the array ‘addresses’ with Address
objects. You can now throw the entire Customer
object as single argument into your webservice call. Flex will unmarshal the
array correctly and generate the XML as you describe below. Hope this helps, Cheers, Franck From: Hello, I am sending arguments to my SOAP method, but
can't figure out -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- RE: [flexcoders] Web Service arguments in AS - how do you... Franck de Bruijn
- [flexcoders] Re: Web Service arguments in AS - how d... ben.clinkinbeard
- RE: [flexcoders] Re: Web Service arguments in AS... Franck de Bruijn
- [flexcoders] Re: Web Service arguments in AS... ben.clinkinbeard
- RE: [flexcoders] Re: Web Service argumen... Joost Nuijten