3 Replies Latest reply on Apr 21, 2011 9:01 AM by oldMster

    Changing from localhost with data services using HTTP Service

    Stewar2402

      I'm using a data service in Flex 4 to connect to a HTTP webservice passing POST commands and receiving XML in response.

       

      Currently the base URL is set to http://localhost and all is working fine. However, I'm now ready to deploy and need to give the install the dynamic option of setting the URL and port number.

       

      My problem is this: how do I set in code the base URL for the data service and give it a port number based on how the webservice is connecting.

       

      I have seen mentioned {server}, {server.name} and {server.port} but none seem to work. I think I am doing something fundimentally wrong here. The web service can be deployed under many different domains so the URL can not be hard coded into the flex app.

       

      Thanks,

      Stewart.