Client / Change client behavior at runtime |
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 let the variable unset, the client will connect to the server URL defined in the WSDL at code generation time.
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 the migration note.