title: Problem in consuming WCF service (basicHttpBinding) in Delphi Win32 Client
body: <p>I am trying to make a Delphi client (Delphi 2006) to communicate with a service written using WCF. Service is damn simple with just one function. Technically like below:</p>
  
  <pre><code>[ServiceContract (Namespace = "http://www.company.com/sample/")]
  public interface IService
  {
      [OperationContract]
      string GetNumber (string name);
  }
  </code></pre>
  
  <p>I have hosted this service on IIS and exposed it using basicHttpBinding with mex end point. I am able to use it in .NET clients.</p>
  
  <p>I tried to run WSDLImp.exe and it generated a source code unit (btw, it generates wierd classes to encapsulate string type. Why cant it be same as Delphi string type?). When I try to call this service, I get the exception:</p>
  
  <blockquote>
    <p>The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</p>
  </blockquote>
  
  <p>I don't see any way to configure the Delphi Win32 client to changing the binding or security  parameters. How can I fix this problem?</p>