Skip to Content
0

Creation of the response message structure.

Nov 15, 2016 at 05:22 AM

83

avatar image
Former Member

Hi experts,

My scenario is synchronous process from SAP Proxy-->PI-->REST service. The response XML which i receive from the REST Adapter is

https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#Edm.String"> _grdcR_noW-9mdVhXG0YPLHhbCBV5jT5Z1iGVxkta_mUjpGfpUzTjeCmcWTBORs-bFiRDQeUsacqo1F6R2AaTrEEy_yl8_rzmo4bShoc1xDQjFwVSWeGoJMsDOSB-VrfTq-Bi34U3G_1dN5Y3zGvEJPqlM4Hsh6aAFjLfnJDqZxDZTlJOaRDtRem9cKH9e58Dubr8YyXFJg35__K3Wffj9CYW_XRq5Ze_W-rMvCI5QFfeu-YB85P78d3AWqHYnrjvmaPw9vJu5d1qFSpSBkcsvpcE8kYj1JwgdregUdiBjcE

I have created a response message structure shown below

Parsing Error: org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed. Please help me out with the response structure.

mapping.png (8.3 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Khaja Sk Nov 15, 2016 at 06:19 AM
0

hi,

Check API response structure and your Response structure, both should match.

you can check the response structure in your response mapping.

Regards,

Khaja.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 15, 2016 at 12:18 PM
0

thanks khaja. Resolved it through the wrapper element in REST adapter. Please help me out with the message structure for the below request for the REST adapter. Can you provide some clarifications on the Adapter framework for the REST API with the oData services@vadim.klimov& @Eng Swee Yeoh

{ "ExtractionRequest": { "@odata.type": "IntradayPricingExtractionRequest", "ContentFieldNames": [ "Ask Price" ], "IdentifierList": { "@odata.type": "InstrumentIdentifierList", "InstrumentIdentifiers": [{ "Identifier": "IBM.N", "IdentifierType": "Ric" }] } } }

Resquest structure created is below

Where Iam struck while defining odata.type in the message structure. My case we have REST service with the Odata call.


Share
10 |10000 characters needed characters left characters exceeded