title: Web Service call error
body: <p>I have created a WCF Service Reference from a provided WSDL file. in C# i've created an instance of the proxy client with a basic binding and called the required method:</p>
  
  <pre><code>    public static bool main()
      {
          Debugger.Launch();
          var binding = new BasicHttpsBinding();
  
          binding.Security.Mode = BasicHttpsSecurityMode.Transport;
          binding.TextEncoding = System.Text.Encoding.UTF8;
  
          var remoteAddress = new System.ServiceModel.EndpointAddress("https://tester.mysite.de:8443/webservice/OrderNumber");
  
          using (var orderNumberClient = new orderNumberClient(new System.ServiceModel.BasicHttpBinding(BasicHttpSecurityMode.Transport), remoteAddress))
          {
              string IDSystem = "123";
              string IDOSystem = "abc";
  
              //set timeout
              orderNumberClient.Endpoint.Binding.SendTimeout = new TimeSpan(0, 0, 0, 10000);
              orderNumberClient.ClientCredentials.UserName.UserName = "test";
              orderNumberClient.ClientCredentials.UserName.Password = "test";
  
              //call web service method
              string productResponse = orderNumberClient.getNewOrderNumber(IDSystem, "01", IDOSystem); ;
  
              MessageBox.Show(productResponse);
          }
  
          return true;
      }
  </code></pre>
  
  <p>Unfortunately I'm receiving a fairly unhelpful error when i call the 'getNewOrderNumber' method:</p>
  
  <blockquote>
    <p>System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen
    Ausnahmefehler verursacht. ---> System.ServiceModel.FaultException:
    WebService processing Exception</p>
    
    <p>Server stack trace: </p>
    
    <p>bei
    System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime
    operation, ProxyRpc&amp; rpc)</p>
    
    <p>bei System.ServiceModel.Channels.ServiceChannel.Call(String action,
    Boolean oneway, ProxyOperationRuntime operation, Object[] ins,
    Object[] outs, TimeSpan timeout)</p>
    
    <p>bei
    System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
    methodCall, ProxyOperationRuntime operation)</p>
    
    <p>...</p>
  </blockquote>
  
  <p>It's not an error on the web service side as that works fine in SOAPUI, am i possibly missing something in the binding?</p>
  
  <p>Hopefully someone more knowledgable on web-services can shine a light on the root cause.</p>