title: c# Soap Client Issue - more than one endpoint configuration for th at contract was found
body: <p>I am trying to write a simple c# console application to test the SOAP API from here:
  <a href="https://www.imailtest.co.uk/webservice/imail_api.asmx?wsdl" rel="noreferrer">https://www.imailtest.co.uk/webservice/imail_api.asmx?wsdl</a> (or <a href="https://www.imailtest.co.uk/webservice/imail_api.asmx" rel="noreferrer">https://www.imailtest.co.uk/webservice/imail_api.asmx</a> to see the api methods)</p>
  
  <p>So, I added this reference and tried to invoke 2 api methods (Authentiacate &amp; ProcessPrintReadyPDF) calls on it and got this error:</p>
  
  <blockquote>
    <p>Error : An endpoint configuration section for contract
    'ServiceReference1.imail_ apiSoap' could not be loaded because more
    than one endpoint configuration for th at contract was found. Please
    indicate the preferred endpoint configuration sect ion by name.</p>
  </blockquote>
  
  <p>Here's my C# Code:</p>
  
  <pre><code>static void Main(string[] args)
  {
      // Anticipate Error
      try
      {
          // Generate SOAP Client
          ServiceReference1.imail_apiSoapClient soapClient = new ServiceReference1.imail_apiSoapClient();
  
          // Login
          Console.WriteLine("Authenticating");
          soapClient.Authenticate(iMailUser, iMailPass);
  
          // Proceed If PDF File Exists
          if (File.Exists(PDFFile))
          {
              // Upload PDF File To iMail
              Console.WriteLine("Uploading PDF File");
              soapClient.ProcessPrintReadyPDF(File.ReadAllBytes(PDFFile), "", true);
  
              // Test Complete
              Console.WriteLine("Done");
          }
          else
          {
              // Log Error
              Console.WriteLine("PDF File [{0}] Does Not Exists", PDFFile);
          }
      }
      catch (Exception ex)
      {
          // Log Error
          Console.WriteLine("Error : "+ ex.Message);
      }
  
      // End Test
      Console.WriteLine("Press any key to continue ...");
      Console.ReadKey();
  }
  </code></pre>
  
  <p>This is how I added the service reference to my console app: </p>
  
  <p><a href="https://i.stack.imgur.com/I6aqI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/I6aqI.png" alt="screenshot"></a></p>
  
  <p>Any ideas?</p>