on 03-12-2018 6:00 AM
Hi
Anyone faced this error in REST receiver adapter ? I have SAP --> PI --> REST synchronous scenario and for every successful message, REST service returns a 200 OK with empty payload. I am handling it in Error Handling Tab by giving a custom payload, however PI throws MP: exception caught with cause com.sap.aii.adapter.rest.ejb.parse.InvalidJSonContent: Invalid JSON message content used; Message: "Missing value. at character 0 of "
Any pointers on how to handle empty payload with 200 OK ?
Error:
REST Receiver adapter config.
Error Handling :
Using XML message content
Using JSON Payload
This is resolved. Looks like custom payload will not work when you have response JSON to XML conversion in the channel (or possibly I could't make it to work). Nevertheless, I followed Maximilian's blog and added a plain text to XML conversion code in the mapping.
Thanks,
Vibhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vibhu ,
Use element name :/ns0 and element namespace : /ns0 is REST channel .
Best , Shiva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
23 | |
11 | |
9 | |
9 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.