weird webservice error in my Cairngorm 2.1 app… solved!
not by me. but a solution is a solution.
I had posted on flexcoders a while back, some said they were experiencing the same problem.
The problem WAS :)
fire up the app, do a WebService interaction, no problem. do another to the same wsdl. no problem. do a third, Flex came back with the error equivelant of, "Oh no you didn’t!" with nothing helpful to tell me.
Well the same guy (ashifsayani) who had the same troubles found a blog post that had a nice clear solution.
Apparently it’s an issue in Cairngorm that you fire .loadWSDL() when using services, which apparently upsets the space time continuum. so
in the model I now have
public var personwsdlLoaded:Boolean = new Boolean(false)
and in my delegate I now do this.
PersonSvc = service.getService("personService");
if( !model.personwsdlLoaded )
{
trace("load PersonSvc WSDL")
model.personwsdlLoaded = true;
PersonSvc.loadWSDL();
}
problem solved. the wsdl is only loaded once. and the continuum remains in balence.
from a comment on the blog Cairngorm 2.2 solves this issue, but in the meantime, I’m happy and can scratch one bug off my white board.
SO GLAD
Lijit Search
Lijit SearchTags
Categories
interestinglinks
Blogroll
Recent Comments
Archives
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
