Writing a Web Services client application / Using logical names for service locations |
When you generate a Client stub from WSDL information using the tool fglwsdl, a global variable for the URL of the Web Service is contained in the .inc file.
# Location of the SOAP server. # You can reassign this value at run-time. # DEFINE Calculator_CalculatorPortTypeEndpoint tGlobalEndpointType
LET Calculator_CalculatorPortTypeEndpoint.Address.Uri = "alias://myservice"
When the Client application accesses the Service, the actual location will be supplied by the entry in FGLPROFILE on the Client machine. This allows you to provide the same compiled .42r application to different customers. The entries in FGLPROFILE on each customer's machine would customize the Web Service location for that customer.
If you are migrating from a version prior to 2.40, see migration note.