Logical reference in the client application

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.

For example:
# Location of the SOAP server.
# You can reassign this value at run-time.
#
DEFINE Calculator_CalculatorPortTypeEndpoint tGlobalEndpointType
You can assign a logical name to this global variable in your Web Services Client application:
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 also Web Services changes.