Content Type application/soap+xml; charset=utf-8 was not supported by service .The client and serv

Posted by Ramrlenin under WCF on 11/13/2017 | Points: 10 | Views : 196 | Status : [Member] | Replies : 0
<system.serviceModel>

<!--Start Copy-->
<client>
<endpoint address="https://someservices.svc" binding="basicHttpBinding" bindingConfiguration="basicBinding" contract="GenerateBillNumberServiceReference.ISadadProcessService" name="WSHttpBinding_ISadadProcessService" />
</client>
<!--End Copy-->

<bindings>
<basicHttpBinding>
<binding name="basicBinding" closeTimeout="20:10:00" openTimeout="20:10:00" sendTimeout="20:10:00" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="65536000" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binding>
</basicHttpBinding>

<!--Start Copy-->
<wsHttpBinding>
<binding name="WSHttpBinding_ISadadProcessService">
<security mode="Transport">
<transport clientCredentialType="None" />
</security>
</binding>
</wsHttpBinding>
<!--End Copy-->

</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="FESDLLTypeBehaviors">
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="FESDLLTypeBehaviors" name="FESDLL.DLLService">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicBinding" contract="FESDLL.IDLLService" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>

This is my code. But i am getting error " Content Type application/soap+xml; charset=utf-8 was not supported by service . The client and service bindings may be mismatched." can you please guide me where i am wrong




Responses

(No response found.)

Login to post response