I'm running in to similar issues with webServices going to CF7 (see my "Flex serializer vs CF7 deserializer" posts). Something that I've found which aids troubleshooting is to look at the actual soap envelope which gets sent between the client and server.

I've noticed that the SOAP encoding seems weird when an object contains another object or array. Instead of using <key> and <value> child tags, it will use <varibleName> tags. Still haven't found a workaround....

Sean

On Jun 15, 2005, at 8:36 AM, cgobble wrote:

Hello,

I'm trying to return complex types with collections from a web
service and everything seems to work fine.� But, when I send the
type as the input parameter for the web service, if there is only 1
item in the collection it does not get back to the web service.

For instance, you have a Contact object in a dotnet web service.�
The Contact has a collection of phone numbers.� I simply want to
pass the entire Contact object back and forth between the web
service and Flex.
I create a method on the web service such as:� (VB)

Public Sub SaveContact(Contact as Contact)

End Sub

However, it seems that if I only have 1 phone number, the phone
number gets lost in translation, even though the Contact info comes
back correctly.� I was able to partially fix this by making sure my
collections were instantiated in the constructor, but if I nest a
collection, it doesn't seem to work right.

Any ideas??






Yahoo! Groups Links




Yahoo! Groups Links

Reply via email to