No I am not using that tool.
I think the arrayCollection when one of the columns contains a null value (as retrieved from the database), it basically cannot be passed back to the web service.
Anyway, what I did was I made some changes on the retrieve SQL statement by decoding null value as empty strings.
The problem I now have is that for example, when I pass the arraycollection with one of the objects having an empty string value to my .net web service, the web service, which accepts the the same as ArrayList would not recognize that object with the empty string value.
So instead of 7 objects in my array collection (with one object having empty string value) is passed to my web service and delegated to the Array List, the array list would only contain 6 objects, instead of 7.
Any idea how to remedy this?
I think I may need to change how I pass the collection from Flex to .NET.
Thanks.
________________________________
From: valdhor <
valdhorlists@...>
To:
flexcoders@...
Sent: Thursday, 2 July, 2009 20:42:46
Subject: [flexcoders] Re: Web Service Question (Help!)
Do you utilise Charles (
http://www.charlesp roxy.com) at all? This will show you exactly what you are sending and receiving.
--- In flexcoders@yahoogro ups.com, Angelo Anolin <angelo_anolin@ ...> wrote:
>
> Hi Valdhor,
> I think you are quite right. Seems that the ArrayCollection which I am passing is becoming NULL or does not contain any value. Although I ensure from my web service that there are no fields in my dataset which I am passing back as an XML string to my flex application.
>
> I tried to utilize Alert.show(event. fault.getStackTr ace().toString) ; to show the error, but nothing comes up.
>
> I wonder how I can make a trace on my arrayCollection? As of now, am using only the compiler and plugging the SWF object inside my asp.net page.
>
>
> Thanks a lot.
>
> Regards,
>
> Angelo
>
>
>
>
> ____________ _________ _________ __
> From: valdhor <valdhorlists@ ...>
> To: flexcoders@yahoogro ups.com
> Sent: Thursday, 2 July, 2009 1:01:23
> Subject: [flexcoders] Re: Web Service Question (Help!)
>
>
>
>
>
> Error 1009 is "Cannot access a property or method of a null object reference.". Try calling event.fault. getStackTrace( ) in the fault handler to see what the problem is. You may have a null XML object returned.
>
> --- In flexcoders@yahoogro ups.com, Angelo Anolin <angelo_anolin@ ...> wrote:
> >
> > Hi FlexCoders,
> >
> > I am totally confused with the error I am having at the moment. Been banging my head on this for the past 3 hours..
> >
> > In one of my function, I am trying to call a WebService method passing an ArrayCollection.
> >
> >
> > var svcDP:WebService = new WebService() ;
> > svcDP.addEventListe ner(ResultEvent. RESULT, getRH);
> > svcDP.addEventListe ner(FaultEvent. FAULT, getFH);
> > svcDP.loadWSDL( _appWebService) ;
> > svcDP.Method2( myArrayColl) ;
> >
> > Calling the webservice, I always get an error, which is defined in the faulthandler event, registering Error 1009.
> >
> > But when I do another web service call before the Method2, say:
> >
> > var svcDP:WebService = new WebService() ;
> > svcDP.addEventListe ner(ResultEvent. RESULT, getRH);
> > svcDP.addEventListe ner(FaultEvent. FAULT, getFH);
> > svcDP.loadWSDL( _appWebService) ;
> > svcDP.Method1( myArrayColl) ;
> > svcDP.Method2( myArrayColl) ;
> >
> > The Method2 gets called (I know because am doing a trace on the web service).
> >
> > Now I don't have any idea why when only Method2 is called, the web service is not triggered, but calling another webservice before it, the method is triggered.
> >
> > Any idea?
> >
> > Thanks and regards,
> >
> > Angelo
> >
>