Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 04, 2015 at 12:56 AM

    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 .

    Regards,

    Mark

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Mark ,

      I got the issue . I had to import IO Utils Jar file in to ESR !

      Thanks so much for your help . Much appreciated .