none
System.ServiceModel.ProtocolException: An HTTP Content-Type header is required for SOAP messaging and none was found. RRS feed

  • Question

  • Hi,

    I am trying to do POST operation to a third party REST service via WCF-WebHttp adapter.  The third party REST service URL is the secured site. So I used Security mode as Transport and Transport credential Type as “Basic”.

    I am converting the Request xml message as a JSON before posting the request to REST service by using custom pipeline component with JSON encoder(out of box).

    While running the interface, I am getting the below error

    Details:"System.ServiceModel.ProtocolException: An HTTP Content-Type header is required for SOAP messaging and none was found.

    The request message is not at all hitting the REST url. So I could not test that with Fiddler tool.

    But If I paste the request message (JSON) separately in Fiddler it is working fine.  Even I tested this service with .NET application.  There is no error at all.

    But only through BizTalk WCF-WebHttp configuration it is not working. 

    Any help is appreciated!!

    Regards,

    Claudia

    Thursday, August 27, 2015 12:47 AM

Answers

All replies