Run the SampleClientAPI Files

Use this procedure to run the SampleClientAPI files.

To run the SampleClientAPI files:

  1. Navigate to the folder where you extracted the SampleClientAPI.zip files and open SampleClientAPI.sln.
  2. Configure the Cobra.WebService.ClientAPI.dll.config to your Cobra Web Service instance.
    1. Open the Cobra.WebService.ClientAPI.dll.config file.
    2. Navigate to Line 35 or locate the following entry.
      <endpoint address="http://localhost:8116/CobraWebService/service"
      binding="basicHttpBinding" bindingConfiguration="defaultBinding"
      contract="Cobra.WebService.ICobraServices" name="BasicHttpBinding_ICobraServices"
      behaviorConfiguration="CobraWebServiceBehavior" />
    3. Update the address tag to point to your Cobra Web Service instance.
  3. Run the application.
    Attention: To better understand each part of the code, see Explaining the SampleClient API Code.