Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Data type / message type creation for Rest Response

Hi Experts ,

I have a Proxy to REST synchronous scenario. During response mapping I am getting the error

Runtime exception occurred during application mapping com/sap/xi/tf/_SAP_Events_MM_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns0:MT_response/return. Values missing in queue context.

When I run the test from Advanced REST Client the output comes likes below structure.

      <ns2:return>

          <status> </status>

           <ns2:events>

                <ns2:event>

                </ns2:event>

          </ns2:events>

            <ns2:link>

        </ns2:return>

How can I create the datatype / message type which can accept this response from the REST WebService.

"ns2:" is not being accepted in the datatype as a valid XML Tag.

Please provide your valuable inputs.

Former Member
replied

Hi Nick,

Create your data type like this:

Message type: The red boxes should be as is.

Message mapping test tab generate instance:

And use the java mapping provided in your previous thread Response message mapping error.

Regards,

Mark

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question