Touchstone Re 2023 API Reference
Setting the Service Endpoints
Getting Started > Setting the Service Endpoints

To connect to the web service, set the service endpoints:

  1. Open the Tutorials solution and navigate to the Starter Kit project.

    Starter Kit project in Tutorials solution

  2. In the References file, note the following required references:
    1. Air.Services.Proxy: Client proxy library generated from multiple Touchstone Re WSDLs (Web Services Definition Language)
    2. System: Namespace that contains fundamental and base classes that define:
      • Value and reference data types
      • Events and event handlers
      • Interfaces
      • Attributes
      • Processing exceptions
    3. System.Runtime.Serialization: Namespace that contains classes used for serializing and deserializing objects
    4. System.ServiceModel: Namespace that contains the classes, enumerations, and interfaces needed to build service and client applications for wide distribution
  3. Open the App.config file to set the endpoint binding addresses.

    The file binds the Starter Kit solution to your Touchstone Re host server. You identify the Touchstone Re application server URL, which is specific to your company, and insert the URL into the endpoint binding addresses in the App.config file.

  4. Identify the Touchstone Re application server URL.
    1. Browse to the folder containing the Touchstone Re client.
    2. Open the TouchstoneRe.exe.config file in a text editor.
    3. Search for "standardEndpoint" within this file.
    4. In the address section in the standardEndpoint line, identify the Touchstone application server URL.

      In the following example, the Touchstone Re application server URL is xyz.abc.com:

      Touchstone Application Server URL Example
      <standardEndpoints>
        <commonEndpoint>
          <standardEndpoint name="applicationCommonEndpoint" address=https://xyz.abc.com/FEP/AirServiceFacade.svc binding="wsHttpBinding" bindingConfiguration="wsHttpEndPoint" />
        </commonEndpoint>
      </standardEndpoints>
      
  5. In the App.config file, locate each <endpoint/> node and change the value of the address attribute to the name of your own Touchstone Re host server.

    That is, use the Touchstone Re application server URL that you identified in the previous step. In the following example, [ServerHost] represents your host server name, for example, xyz.abc.com:

    Endpoint Address Example
    <endpoint address="https://[ServerHost]/FEP/AirServiceFacade.svc"/>
    
    Each API has a separate endpoint.
  6. Start coding!
  7. Press F5 to run your application.