« Return to Thread: Web Service Question (Help!)

Re: Re: Web Service Question (Help!)

by Angelo Anolin :: Rate this Message:

Reply to Author | View in Thread

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.getStackTrace().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@...
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
>





     

 « Return to Thread: Web Service Question (Help!)