I do believe that is the problem. In fact, I don't think it's just a
cairngorm issue because I had the same problem without using cairngorm.
I would call a web service to load a combobox of county names whenever
the state combobox selection was changed. It would work the first two
times and fail on the third. I finally figured that perhaps it didn't
like me loading the wsdl multiple times, which was actually dumb of me
to do anyway. So, I rewrote the function as follows. Maybe you can do
something similar:
public function loadCounties():void
{
if (states_cb.selectedIndex == 0) return;
// create getCounties Object with
// 'Session' and 'State' properties
if (!getCountiesWSCreated)
{
getCountiesWSCreated = true;
getCounties.Session = sessionID;
// define the getCountiesWS web service, load the
// wsdl and then execute the operation, passing to
// it the above defined getCountiesWS object.
getCountiesWS.useProxy = false;
getCountiesWS.GetCountiesOperation.addEventListener("result",
getCountiesResultHandler);
getCountiesWS.GetCountiesOperation.resultFormat = 'e4x';
getCountiesWS.addEventListener("fault", getCountiesFaultHandler);
getCountiesWS.loadWSDL('https://www.myserver.com/GetCounties.wsdl');
}
getCounties.State = states_cb.selectedItem.data;
getCountiesWS.GetCountiesOperation(getCounties);
}
Ron
--- In [email protected], "Robin Burrer" <[EMAIL PROTECTED]> wrote:
>
> Hi Dirk,
>
>
>
> That might be the reason indeed. I had the loadWSDL in my delegate
just
> before I call the method of the webservive.
>
> I guess I should be in the Services.mxml. I can't really figure out
> where to put it though....
>
>
>
> Robin
>
>
>
> ________________________________
>
> From: [email protected] [mailto:[EMAIL PROTECTED]
On
> Behalf Of Dirk Eismann
> Sent: Thursday, 21 December 2006 6:30 PM
> To: [email protected]
> Subject: RE: [flexcoders] Cairngorm 2.1 - calling a webservive more
than
> once
>
>
>
> Any change you're calling loadWSDL() more than once on your WebService
> instance? This could be the reason.
>
>
>
> Dirk.