I have a .NET web service I am calling from Flex. One of the methods expects an object described in the following extract from the WSDL:
<s:complexType name="UserAnswers">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="UserId" type="s:int"/>
<s:element minOccurs="1" maxOccurs="1" name="ModuleId" type="s:int"/>
<s:element minOccurs="0" maxOccurs="1" name="ResponseIds" type="tns:ArrayOfInt"/>
<s:element minOccurs="0" maxOccurs="1" name="AuthenticationGuid" type="s:string"/>
</s:sequence>
</s:complexType>
<s:complexType name="ArrayOfInt">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="int" type="s:int"/>
</s:sequence>
</s:complexType>
I am having trouble getting the array ResponseIds array to serialize properly from Flex. The test aspx page shows it like this in the request example:
<ResponseIds>
<int>int</int>
<int>int</int>
</ResponseIds>
...but when I examine the request sent from flex it is serializing the array like this:
<ns0:ResponseIds>
<ns0:int>22,24,28,30,32</ns0:int>
</ns0:ResponseIds>
...and obviously that isn't working. Is there any way I can affect the array serialization?
I have examined as many posts on this topic as I can but can't seem to find an answer other than send xml instead of an object which I don't really want to do if I can help it.
Thanks in advance
Graham
__._,_.___
--
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
Software development tool | Software development | Software development services |
Home design software | Software development company |
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___