Who is using Cairngorm 2.2 with imported web services?

I am very new to Cairngorm, so apologize for probably being a simple question:

I am working with several WCF services imported in Flex Builder 3 (via Data> Manage Web Services) and I am wondering how to expose these ServiceLocator services in Cairngorm. From what I've read so far, it looks like Cairngorm prefers services to be defined in Service.mxml (or somehow in MXML), but that won't work in my case.

0


source to share


1 answer


I am working on an application right now when Services.mxml is making me nuts ... calls are just not being made. I read blog posts describing solutions to this problem, but this is a repetitive, nagging problem, so I want to find a more robust approach. I believe you can just replace the code in your do where you get the web service link

this.service = ServiceLocator.getInstance().getWebService("web service name here"); 

      

like that:



this.service = generated.webservices.MyService();

      

I hope the rest should be straight forward after that. I'm planning to do some testing today, so I'll let you know how it goes.

0


source







All Articles