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

Problem while using HTTP Client

46 Views

Hi,

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:Code area="HTTP">ADAPTER.HTTP_EXCEPTION</SAP:Code>

<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,

Prasanna