Skip to Content
Former Member
May 27, 2010 at 06:43 AM

Problem while using HTTP Client



We are working on a HTTP-XI-SOAP synchronous scenario.

When we test the interface through test tool in RWB, it is working fine.

But when we tried the same using SAPPIHTTPClient, we are getting error in SXMB_MONI:


<SAP:AdditionalText>HTTP 500 Internal Server Error</SAP:AdditionalText>

<faultstring>content-type of the request should be text/xml</faultstring>

The difference we noticed is that, when we tested through RWB, the content type is text/xml (Payloads->MainDocument ( text/xml ) ), but when we tested through the HTTP client, the content type is application/xml (Payloads->MainDocument ( application/xml )).

So, if thats the problem, how do I set the content type to "text/xml" while sending the request message through HTTP client?

Thanks in advance,