- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Ryan - you can just pass the object, flex does take care
where it is element or attribute
following is the sample(one of testcase we have)
<s:complexType name="Person">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="Age"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="ID"
type="s:float" />
</s:sequence>
<s:attribute name="Name" type="s:string" />
<s:attribute name="Male" type="s:boolean" />
</s:complexType>
var expected:Object = new Object();
expected.Name = "Bob Smith";
expected.Male = true;
expected.Age = 31;
expected.ID = 12345;
operation.send(expected);
where it is element or attribute
following is the sample(one of testcase we have)
<s:complexType name="Person">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="Age"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="ID"
type="s:float" />
</s:sequence>
<s:attribute name="Name" type="s:string" />
<s:attribute name="Male" type="s:boolean" />
</s:complexType>
var expected:Object = new Object();
expected.Name = "Bob Smith";
expected.Male = true;
expected.Age = 31;
expected.ID = 12345;
operation.send(expected);
Views
Replies
0 Likes
Total Likes