title: Send MTOM encoded request from Postman to WCF service
body: <p>I am trying to create WCF service that can receive MTOM encoded messages. I do not have client that sends MTOM encoded messages, however I do have message example (that's why I am trying to use Postman).</p>
  
  <p><strong>Request example:</strong></p>
  
  <blockquote>
    <p>Content-Type: multipart/related; type="application/xop+xml";
    boundary="uuid:83d3b2a6-5437-4366-bfb1-6f7c8b49add5";
    start="";
    start-info="application/soap+xml;
    action=\"urn:test:test1:ResponseInputMessage\""</p>
    
    <p>Payload: --uuid:83d3b2a6-5437-4366-bfb1-6f7c8b49add5 Content-Type:
    application/xop+xml; charset=UTF-8; type="application/soap+xml;
    action=\"urn:test:test1:ResponseInputMessage\""
    Content-Transfer-Encoding: binary Content-ID:
    </p>
    
    <p>...
    --uuid:83d3b2a6-5437-4366-bfb1-6f7c8b49add5--</p>
  </blockquote>
  
  <p><strong>Postman:</strong>
  <a href="https://i.stack.imgur.com/mKmjr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mKmjr.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/uDNdM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uDNdM.png" alt="enter image description here"></a></p>
  
  <p><strong>Service contract</strong>:</p>
  
  <pre><code>[ServiceContract]
  public interface IResponseService
  {
      [OperationContract]
      AcknowledgementType ResponseInputMessage(RegistryResponseType registryResponse);
  }
  </code></pre>
  
  <p><strong>Web.config:</strong></p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;appSettings&gt;
      &lt;add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /&gt;
    &lt;/appSettings&gt;
    &lt;system.web&gt;
      &lt;compilation debug="true" targetFramework="4.6.1" /&gt;
      &lt;httpRuntime targetFramework="4.6.1"/&gt;
    &lt;/system.web&gt;
    &lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;wsHttpBinding&gt;
          &lt;binding name="wsHttpMtomBinding" messageEncoding="Mtom" /&gt;
        &lt;/wsHttpBinding&gt;
      &lt;/bindings&gt;
  &lt;services&gt;
    &lt;service name="MySvc.ResponseService"&gt;
      &lt;endpoint address="ResponseService.svc" contract="MySvc.IResponseService" binding="wsHttpBinding" bindingConfiguration="wsHttpMtomBinding"&gt;&lt;/endpoint&gt;
    &lt;/service&gt;
  &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior&gt;
            &lt;serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="true"/&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;protocolMapping&gt;
          &lt;add binding="wsHttpBinding" scheme="https" /&gt;
      &lt;/protocolMapping&gt;    
      &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /&gt;
    &lt;/system.serviceModel&gt;
    &lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true"/&gt;
      &lt;directoryBrowse enabled="true"/&gt;
    &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>WSDL (<a href="http://localhost:50809/ResponseService.svc?wsdl" rel="nofollow noreferrer">http://localhost:50809/ResponseService.svc?wsdl</a>) displays:</p>
  
  <pre><code>&lt;soap12:address location="http://localhost:50809/ResponseService.svc/ResponseService.svc"/&gt;
  </code></pre>
  
  <p>When I send a request to <code>http://localhost:50809/ResponseService.svc/ResponseService.svc</code> Postman says <code>Could not get any response</code>. If I send a request to <code>http://localhost:50809/ResponseService.svc</code> is returns <code>404</code>.</p>
  
  <p>Please suggest what I am missing?</p>
  
  <p>Thanks in advance</p>