Change server location

If the Web service server location changes, you can update the address in the global endpoint record.

To change the server location at runtime, set the record Uri member with a valid URL of another service. All services must respect the same WSDL contract. If you leave the variable unset, the client will connect to the server URL defined in the WSDL at code generation time.

Example:
LET Calculator_CalculatorPortTypeEndpoint.Address.Uri = 
  http://zeus:1111/mydomain/Calculator

You can assign this variable with a URL set in the FGLPROFILE (see Logical Service location).

If you are migrating from a version prior to 2.40, see also Web Services changes.