cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while using HTTP Client

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi prasanna,

Please have a look into these snotes 804124, 807000.

Thanks

Anku

0 Kudos

I went through these notes and I think these are not relevant.

My interface is working perfectly fine when I test it from the test tool of RWB.

I am getting this error when I trigger the interface from the HTTP client.

How to I change/set the payload content type?

Former Member
0 Kudos

Hi Prasanna,

Please use messagetransfrombean and set the content type in addapter module.

Thanks

Uaruna

0 Kudos

Thanks a lot Uaruna,

That solved my problem

Answers (0)