title: IsContentTypeSupported method is implemented properly
body: <p>I have implemented a WCF service for connecting c# project with SAP. 
  But I receive the following error when I try to start the service. The error is as follows</p>
  
  <p>The content type text/html; charset=iso-8859-1 of the response message does not match the content type of the binding (multipart/related; type="application/xop+xml"). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 442 bytes of the response were: </p>
  
  <pre><code>&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;soap:Body&gt;
          &lt;soap:Fault&gt;
              &lt;faultcode&gt; soap:Server &lt;/faultcode&gt;
              &lt;faultstring xml:lang="en"&gt; RABAX occurred on server side &lt;/faultstring&gt;
              &lt;detail&gt;
                  &lt;sap:Rabax xmlns:sap="http://www.sap.com/webas/710/soap/runtime/abap/fault/generic"&gt;
                      &lt;SYDATUM&gt;20170904&lt;/SYDATUM&gt;
                      &lt;SYUZEIT&gt;152028&lt;/SYUZEIT&gt;
                      &lt;ERRORCODE&gt;SYNTAX_ERROR&lt;/ERRORCODE&gt;
                  &lt;/sap:Rabax&gt;
              &lt;/detail&gt;
          &lt;/soap:Fault&gt;
      &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>The following is my IIS config file for the WCF Service. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /&gt;
    &lt;/configSections&gt;
    &lt;system.web&gt;
      &lt;compilation targetFramework="4.5" /&gt;
      &lt;pages controlRenderingCompatibilityVersion="4.0" /&gt;
    &lt;/system.web&gt;
    &lt;system.serviceModel&gt;
      &lt;behaviors&gt;
        &lt;endpointBehaviors&gt;
          &lt;behavior name="CustomBehavior"&gt;
            &lt;clientCredentials&gt;
              &lt;httpDigest impersonationLevel="None" /&gt;
            &lt;/clientCredentials&gt;
          &lt;/behavior&gt;
        &lt;/endpointBehaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name=""&gt;
            &lt;serviceMetadata httpGetEnabled="true" /&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;bindings&gt;
        &lt;customBinding&gt;
          &lt;binding name="CustomBinding_HTTP"&gt;
            &lt;binaryMessageEncoding maxReadPoolSize="64" maxWritePoolSize="64" maxSessionSize="2147483647"&gt;
              &lt;readerQuotas maxDepth="300" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /&gt;
            &lt;/binaryMessageEncoding&gt;
            &lt;httpTransport manualAddressing="false" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" allowCookies="false" authenticationScheme="Anonymous" bypassProxyOnLocal="false" decompressionEnabled="true" hostNameComparisonMode="StrongWildcard" keepAliveEnabled="true" maxBufferSize="2147483647" proxyAuthenticationScheme="Anonymous" realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false" useDefaultWebProxy="true" /&gt;
          &lt;/binding&gt;
          &lt;binding name="bindingBAPI" receiveTimeout="00:10:00" sendTimeout="00:05:00"&gt;
            &lt;mtomMessageEncoding messageVersion="Soap11"&gt;&lt;/mtomMessageEncoding&gt;
            &lt;httpTransport authenticationScheme="Basic" realm="SAP NetWeaver Application Server[SC3/900]"&gt;&lt;/httpTransport&gt;
          &lt;/binding&gt;
        &lt;/customBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;endpoint address="my end point address" binding="customBinding" bindingConfiguration="bindingBAPI" contract="ServiceReferenceBAPI.z_bedmanagement" name="BAPIEndpoint" /&gt;
      &lt;/client&gt;
      &lt;services&gt;
        &lt;service name="Cerner.BM.Outbound.Service.BM_OutboundService"&gt;
          &lt;endpoint address="" binding="customBinding" bindingConfiguration="CustomBinding_HTTP" name="BM_OutboundService" contract="Cerner.BM.Outbound.Service.IBM_OutboundService"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost" /&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
          &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true" /&gt;
    &lt;/system.serviceModel&gt;
    &lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true" /&gt;
    &lt;/system.webServer&gt;
  
    &lt;!-- Client and institution value for successful BAPI Connection. --&gt;
    &lt;appSettings&gt;
  
      &lt;add key="BAPI_Client" value="" /&gt;
      &lt;add key="BAPI_Institution" value="" /&gt;
      &lt;add key="BAPI_UserName" value=""/&gt; 
      &lt;add key="BAPI_Password" value=""/&gt;
    &lt;/appSettings&gt;
  &lt;/configuration&gt;
  </code></pre>