Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Cairngorm 2.2 incompatible with AS-based ServiceLocator?   Message List  
Reply | Forward Message #73309 of 149548 |
I think there may be a problem related to using the accessors
collection returned by describeType() in AbstractServices.as. It
doesn't seem to include items declared in AS.

I am getting an error saying the web service can't be found or
something similar when calling getWebService() on my AS-based
ServiceLocator. When my app starts up it loads a config file that
contains the WSDL urls for the services in my app. Once the file has
loaded, I call an initServices() function on my SL where I define the
WebService properties. When I subsequently try to call
getWebService(), it bombs saying it doesn't exist.

Looking at the callstack shows that all of my services are properly
created, they just don't seem to get registered with SL.

Ideas? Bug?

Thanks,
Ben

PS - I posted to the cairngorm-devel list almost 24 hours ago and it
still hasn't shown up, so sorry if it eventually does.




Thu May 3, 2007 12:36 pm

ben.clinkinb...
Offline Offline
Send Email Send Email

Forward
Message #73309 of 149548 |
Expand Messages Author Sort by Date

I think there may be a problem related to using the accessors collection returned by describeType() in AbstractServices.as. It doesn't seem to include items...
ben.clinkinbeard
ben.clinkinb...
Offline Send Email
May 3, 2007
12:37 pm

Hi Ben, I'm not exactly sure whats going on here. Can you give more info, with code and the exception your seeing? Thanks, Alistair ... From:...
Alistair McLeod
alimcleod
Offline Send Email
May 17, 2007
4:56 pm

I declared my ServiceLocator subclass in AS rather than MXML, and when my app loads I load an XML file. That XML file contains the WSDL URLs for all the...
ben.clinkinbeard
ben.clinkinb...
Offline Send Email
May 17, 2007
6:08 pm

Hi Ben, I can't think of anything that's changed between 2.1 and 2.2 that would cause this. I'm guessing that the web services your defining dynamically aren't...
Alistair McLeod
alimcleod
Offline Send Email
May 18, 2007
12:49 pm

Hi Alistair, _webServices is empty, but we already knew that. Looking at ServiceLocator in the debugger shows all of my WebService objects properly constructed...
ben.clinkinbeard
ben.clinkinb...
Offline Send Email
May 18, 2007
1:47 pm

Hi Ben, It does sound like something to do with describeType(), though I can't see Cairngorm 2.2 could have changed what it returns. Can you compare the...
Alistair McLeod
alimcleod
Offline Send Email
May 18, 2007
4:10 pm

Hi Ali, Sorry its taken me so long to respond- had to finish up a project. Anyhow, I was able to solve the mystery pretty quickly once I revisited things this...
ben.clinkinbeard
ben.clinkinb...
Offline Send Email
Jun 4, 2007
2:17 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help