Skip to Content
avatar image
Former Member

Response message mapping error

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 map this in output to my message response in the mapping . Data type does not seem to be accepting the value of "ns2:"

Please provide your valuable inputs.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 03, 2015 at 05:17 AM

    Nick,

    If possible get the WSDL from the webservice.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Raghuraman,

      How would getting a WSDL from the webservice help me ?

      Is there any way I can download the WSDL from the webservice directly ?

  • Nov 03, 2015 at 04:55 AM

    Hi Nick,

    I see that your REST is now working. 😊 For your requirement, you can use XSLT or Java mapping to adjust to the correct structure.

    Regards,

    Mark

    Add comment
    10|10000 characters needed characters exceeded