title: The message with Action '' cannot be processed
body: <p>Can anyone tell me what i can do to fix this error when i call a WCF SOAP service from JQuery?</p>
  
  <p>Error: </p>
  
  <pre><code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;s:Body&gt;&lt;s:Fault&gt;&lt;faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none"&gt;a:ActionNotSupported&lt;/faultcode&gt;&lt;faultstring xml:lang="en-US"&gt;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).&lt;/faultstring&gt;&lt;/s:Fault&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;
  </code></pre>
  
  <p>If i use Fiddler to rebuild the request and add the SOAPAction http header portion, i get the same error except with the value i gave it.</p>
  
  <p>Here is my web.config:</p>
  
  <pre><code>&lt;configuration&gt;
  &lt;system.web&gt;
      &lt;compilation debug="true" targetFramework="4.0" /&gt;
  &lt;/system.web&gt;
  &lt;system.serviceModel&gt;
      &lt;bindings&gt;
          &lt;basicHttpBinding&gt;
              &lt;binding name="soapBinding"&gt;
                  &lt;security mode="None"&gt;
                  &lt;/security&gt;
              &lt;/binding&gt;
          &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true"/&gt;
      &lt;services&gt;
          &lt;service name="CatalogService" behaviorConfiguration="defaultBehavior"&gt;
              &lt;endpoint address="" binding="basicHttpBinding" bindingConfiguration="soapBinding" contract="ICatalogService"/&gt;
          &lt;/service&gt;
      &lt;/services&gt;
      &lt;behaviors&gt;
          &lt;serviceBehaviors&gt;
              &lt;behavior name="defaultBehavior"&gt;
                  &lt;!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --&gt;
                  &lt;serviceMetadata httpGetEnabled="true"/&gt;
                  &lt;!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information --&gt;
                  &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt;
              &lt;/behavior&gt;
          &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
  &lt;/system.serviceModel&gt;
  &lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true"/&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p></p>
  
  <p>Here is my App_Code/CatalogService.cs:</p>
  
  <pre><code>[ServiceBehavior(AddressFilterMode = AddressFilterMode.Any)]  public class CatalogService : ICatalogService  {
  public string HelloWorld(string name){
      return String.Format("Hello {0}", name);}}
  </code></pre>
  
  <p>Here is my App_Code/CatalogIService.cs:</p>
  
  <pre><code>[ServiceContract(Namespace = "http://miami.edu/")]  public interface ICatalogService {
  [WebInvoke(Method = "POST",
               BodyStyle = WebMessageBodyStyle.Wrapped,
               ResponseFormat = WebMessageFormat.Xml,
               RequestFormat = WebMessageFormat.Xml)]
  string HelloWorld(string name);}
  </code></pre>
  
  <p>Here is my jQuery client code:</p>
  
  <pre><code>    $.ajax({
  type: 'POST',
  url: 'http://localhost/csw/service.svc/soap',
  data: request,
  contentType: 'text/xml; charset=utf-8',
  dataType: 'text',
  success: function (result) {
      console.log(result);
  
      $("#result").text(result);
      //result.responseXML
      //result.responseText
  },
  error: function (message) {
      console.log(message);
      alert("error has occured" + message);
  }});
  </code></pre>
  
  <p>Here is my SOAP request:</p>
  
  <pre><code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;  &lt;s:Body&gt;  &lt;HelloWorld xmlns="http://cstars.miami.edu/CatalogService"&gt;  &lt;name&gt;CarlosK&lt;/name&gt;  &lt;/HelloWorld&gt;  &lt;/s:Body&gt;  &lt;/s:Envelope&gt;
  </code></pre>