Skip to Content

SAP PI 7.40 REST adapter receiver method POST

HI the community,

I consume a REST service method POST ( with JSON message ), when the response is ok, we receive an HTTP code = 204 .

In that case of code 204, there is no content but the adapter give an error

com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rest.ejb.parse.InvalidJSonContent: Invalid JSON message content used; Message: "Missing value. at character 0 of "

I created a custom reply in "error handling"

How can I force the use of that custom Result ?

Thanks in advance

Eric KOralewski

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 17, 2019 at 03:19 PM

    Hi the community,

    I found the solution.

    I unchecked the conversion JSON to XML at response

    Regards


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.