Skip to Content
0

REST Receiver channel error : Serialization error

Sep 25, 2017 at 08:18 PM

127

avatar image
Former Member

Hi ,

I am getting - Serialization error ( HTTP 400) in Rest Receiver channel

MP: exception caught with cause com.sap.aii.adapter.rest.ejb.common.exception.HttpCallException: HTTP PUT call is not successful. SerializationError.

Scenario is file to Rest ( XML to JSON conversion) to use PUT call to REST API.

any suggestion

Ravi

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Sep 26, 2017 at 10:44 AM
0

what happens when you try from outside pi, ie. using rest client with the same payload? is it successful?

check with rest team if they have any idea on this by sharing your input to them.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member
Sep 26, 2017 at 05:58 PM
0
Hello Ravi,
I'd suggest you to trace the outgoing payload using one of the following methods:
  1. In message monitor, checking the last message stage (e.g. AM or VO).
  2. Using HTTP provider traces in XPI Inspector.
  3. Checking ICM traces with trace level 3.
  4. Sniffing the outgoing traffic on network adapter with tcpdump or Wireshark.

Then ensure that json payload being sent by PI is correct. Alternatively you can test it with any 3rd-party REST client (e.g. SOAP UI or POSTMAN). If you will get the same error when sending with alternative client, then the problem is with payload. Otherwise - check the message flow within PI.

Best regards,
Vadym

Share
10 |10000 characters needed characters left characters exceeded