Is your problem on the flex side or on the .NET side?


On 6/16/05, Matt Chotin <[EMAIL PROTECTED]> wrote:

Hmm, seems odd.  Can you take a look at the object in a debugger and see if it's constructed the way you'd expect?  Also turn on debugging (web-service-proxy) and check if we're even sending the phone number across the wire.  If not you may need to "re-process" the contact before executing the send to make sure that things are what the web service expects.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of cgobble
Sent: Wednesday, June 15, 2005 9:51 AM
To: [email protected]
Subject: [flexcoders] Re: Collections between Flex and Web services

 

I am using the mx.utils.ArrayUtil.toArray to bind to a datagrid. 
This makes sure that Flex sees it when there is only 1 item in the
array.  However, going back to the service with the entire object is
causing the problem.  I've been experimenting with defining classes
for these objects and I get the same problem when I use an array.



--- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]>
wrote:
> Check out mx.utils.ArrayUtil.toArray().  You may need to call that
to
> make sure that when you pass a single item it still gets treated
as an
> array.
>

>
> Matt
>

>
> ________________________________
>
> From: [email protected]
[mailto:[email protected]] On
> Behalf Of cgobble
> Sent: Wednesday, June 15, 2005 7:36 AM
> To: [email protected]
> Subject: [flexcoders] Collections between Flex and Web services
>

>
> 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
>
> *      To visit your group on the web, go to:
>       http://groups.yahoo.com/group/flexcoders/
>        
> *      To unsubscribe from this group, send an email to:
>       [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]?
subject=Unsubscribe>
>        
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .





Yahoo! Groups Links



Yahoo! Groups Links

Reply via email to