cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CPI ODATA V2 jaon data POST request Issue

satheshM
Explorer
0 Kudos
233

There is a Odata API which is accept Json data in POST method it is working fine in postman ,

satheshM_0-1722580074492.png

 

I have configured in sap cpi useing Odata v2 Adapter and I am sending same json data I am getting below error 

Error Details
com.sap.it.rt.adapter.http.api.exception.HttpResponseException: An internal server error occured: Request Payload Parsing Failed for one of the reason: (1) Either the OData metadata content available in the server is outdated OR (2) The request payload seems to be incorrect. Error Details : only whitespace content allowed before start tag and not { (position: START_DOCUMENT seen {... @1:1) , org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not { (position: START_DOCUMENT seen {... @1:1) . The MPL ID for the failed message is : AGaseh9b_O_8thxj4XfM0q6Gl8Zl   
 
Plz anyone help me to find out it ,Thanks in advance

 

View Entire Topic
Chetan_29
Explorer
0 Kudos

The OData V2 adapter is expecting an XML payload but is receiving JSON.