8 Replies Latest reply on May 8, 2009 10:15 AM by Venky038

    Cross Domain webservice calls not working when hosted on server.


      Subject : WebService Calls to a cross domain runs from Flex Builder but doesn't run when deployed on a server..



      Thanks for taking time to read thru this. Here is my situation.


      1) I have a flex application which is hosted on ServerA, loads data from an local XML "information.xml" (with in the flex application) and makes webservice calls to another server (ServerB) across the domain.


      2) My application consists of flex/actionscript directly talking to the 3rd party server (ServerB) webservices via WSDL/SOAP. ServerB which hosts the webservices has a "*" crossdomain.xml. So, I am thinking crossdomain is not an issue.


      3)  I am able to confirm that application is able to load the XML. Becasue, when debugged,control is going to the "onResultHttpService" function.This is the code used to load the XML file


      var httpService:HTTPService = new HTTPService();

      httpService.url = "data/information.xml";

      httpService.resultFormat = "e4x";

      httpService.addEventListener(FaultEvent.FAULT, onFaultHttpService);

      httpService.addEventListener(ResultEvent.RESULT, onResultHttpService);



      4) I do - "Project > Export Release Build" to create bin-release folder and upload the contents of the folder to my server (ServerA).


      5) My application was running fine locally (from Flex Builder, "Run > Run Main") and on the ServerA without any issues till yesterday.


      6) Today I tried changing the "information.xml" file and since it didn't work I replaced the old/working information.xml back and deployed it on ServerA.


      7) Now It is not able to make webservice calls to ServerB,but other webservice calls to Yahoo are going thru fine.


      7) Application is running fine (webservice calls to ServerB are working) locally from flex builder, but it is not running on the serverA. I also tried deploying the applcaition on an other ServerX but it is not running anywhere except from the local Flex Builder.


      8) User's of the application who had the cache were able to browse without any issues.But once the cache is cleared no body was able to access the applciation from the serverA.


      9) I tried all other options and I am not able to figure out what the issue is. Please help.