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
Subscribe
Lijit Search
Lijit SearchTags
360Flex 360|Flex Camp Acrobat Adobe Adobe Flex Adobe MAX Apple Argent BlogCFC Brightkite Business CNET ColdFusion Conferences David Sedaris Defrag DTMC EffectiveUI Flex Flex Development Google Android government Harvest Ignite Denver IP iPhone Mac Macbook Music Noteflight Obama Social Media Steve Jobs Techcrunch Technology Television the Gym Time Machine Time Tracking Twitter V Wordpress Work Writing YojimboCategories
- 360Conferences
- 360Flex
- 360MAX
- 360|Flex Camp
- Adobe Flex
- Adobe MAX
- Announcements
- AppleScript
- Around the Home/Office
- bugZ
- Business
- ColdFusion
- community
- Conferences
- Consulting
- CSS
- EffectiveUI
- eui community
- euicommunity
- Family
- Flex Show
- Google Android
- I am a Consumer
- Ignite Denver
- iPhone
- Mac
- Microsoft Surface
- politics
- Random
- RIA
- Social Media
- SQL
- Technology
- Travel
- Web Development
- Work
- Writing
Blogroll
Recent Comments
- jwilker on I bet on the wrong horse, can the government help me out?
- John Denver on I bet on the wrong horse, can the government help me out?
- james braselton on Macbook Touch, I’d buy it!
- jwilker on San Francisco, Day 3
- John on San Francisco, Day 3
Archives
- 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