Skip to Content
0

REST sender adapter - JSON to XML mapping error

Dec 16, 2016 at 04:08 PM

94

avatar image
Former Member

Hello,

I followed the blog https://blogs.sap.com/2014/12/18/pi-rest-adapter-json-to-xml-conversion/

and test the rest sender adapter for json to xml conversion.

When i try to test with ARC, i get mapping error.

Error while sending message to module processor: senderChannel '7304c76140fc347ebd3f2411075bb81d': Catching exception calling messaging system: Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_flightquery_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns1:BAPI_FLIGHT_GETDETAIL/AIRLINEID. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD: Runtime Exception when executing application mapping program com/sap/xi/tf/_MM_flightquery_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns1:BAPI_FLIGHT_GETDETAIL/AIRLINEID. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD: Cannot create target element /ns1:BAPI_FLIGHT_GETDETAIL/AIRLINEID. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD

Please find the mapping(MM_flightquery) as attached.

Please suggest, as we need to finish testing ASAP.

mapping.jpg

Thank you

Ganga

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

0 Answers