title: How to call WCF service in the FitNesse test?
body: <p>I'm trying to call WCF service in the FitNesse test.
  When I'm trying to initialize a client with the following code:</p>
  
  <pre><code>    using (var client = new Status.StatusSoapClient())
      {
          client.Endpoint.Address = new EndpointAddress(url);
          response = client.GetProductionTicketStatus(dealerId, orderId, orderLineId);
  
      }
  </code></pre>
  
  <p>I get an error:</p>
  
  <blockquote>
    <p>System.InvalidOperationException: Could not find default endpoint
    element that references contract 'Status.StatusSoap' in the
    ServiceModel client configuration section.</p>
  </blockquote>
  
  <p>which makes sense because .NET Framework does not support configuration for DLLs.</p>
  
  <p>MSDN Library says: "You have to move your configuration code into the configuration file recognized by your hosting environment". But I'm not sure if this is possible to be done for FitNesse.</p>
  
  <p>So I tried to create binding myself without trying to read it from config</p>
  
  <pre><code>    var binding = new BasicHttpBinding();
      binding.SendTimeout = new TimeSpan(0, 0, 0, 0, 100000);
      binding.OpenTimeout = new TimeSpan(0, 0, 0, 0, 100000);
      binding.MaxReceivedMessageSize = 10000;
      binding.ReaderQuotas.MaxStringContentLength = 10000;
      binding.ReaderQuotas.MaxDepth = 10000;
      binding.ReaderQuotas.MaxArrayLength = 10000;
      var endpoint = new EndpointAddress(url);
      var myClient = new Status.StatusSoapClient(binding, endpoint);
      response = myClient.GetProductionTicketStatus(dealerId, orderId, orderLineId);
  </code></pre>
  
  <p>But when I try to run the test with this code I get the "Testing was interrupted and results are incomplete." error on FitNesse.</p>
  
  <p>This answer <a href="https://stackoverflow.com/a/646177/2211481">https://stackoverflow.com/a/646177/2211481</a> suggests to make a copy of the app.config for the testrunner. When I copy my app.config to Runner.exe.config, put it to the Runner folder and run the initial code again I get the "Testing was interrupted and results are incomplete." error on FitNesse again.</p>
  
  <p>Is there a way I could solve this?</p>