views:

16

answers:

0

hi i want to retrive data from 2 webservices using cairngorm. i call them in init application and this is wrong, i don't know when to call this second one. flex can get data from the firsone and from the second is telling that doesn't see method, for me it is cos service it trying to find method from second webservice in this firstone. so when shoudl i call second service?

 public function runApp():void 
   {
    services.serviceURL = "http://localhost:84/Service1.asmx?wsdl";
    new GetService1Event().dispatch();
    services.logout();

    services.serviceURL = "http://localhost:85/service2.asmx?wsdl"
    new GetService2Event().dispatch();    
   }

this is in main.mxml file when i have service and both controllers