Skip to Content
avatar image
Former Member

Idoc to Webservice synchronous response error

Hi SapAll.

I iam getting an error with the Response when PI is triggering the Idoc to Webservice synchronous Interface . the issue is with the Response message .

it is failing in the Integration engine saying ""MAPPING">EXCEPTION_DURING_EXECUTE"

IllegalInstanceExcepti</SAP:P2><SAP:P3>on: Cannot create target element /ns0:Envelope.

Values missing in queue context. Target XSD require.

<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_PersonnelDetails_RESP_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns0:Envelope. Values missing in queue context. Target XSD require~ </SAP:Stack>

when I try to test the message in message mapping editor. all the nodes in the source message data are showing in Red Icon color.

can any one help me in this.

Regards.

Jagdish.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Oct 01, 2015 at 06:32 AM

    Hello Jagdish,

    Its because of wrong payload.

    The Input payload is not matching the source structure XML

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 01, 2015 at 06:35 AM

    Hi Jagdish,

    Please check the XML prefix. your XSD/structure is expecting some other prefix and XML is having different prefix.

    regards,

    Harish

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 01, 2015 at 06:47 AM

    Hi Venkat,

    As other pepole also say check the XML response structure I have one more doubt that you are saying Idoc to Webservice Sync scenario are you using Request Response bean if yes then check the configuration for that also

    Regards

    GB

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 01, 2015 at 07:01 AM

    Hi Jagdish,

    Just to add, if the response contains an exception this issue could happen as well. Try to take the payload and to check the call with a third like SOAPui. Also, if the answer has been generated, you can take the payload and to try to test in message mapping, to check easier what error could be.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 01, 2015 at 09:24 AM

    Hi Jagdish,

    Just to add here, pls check whether the webservice is sending the response with envelope or with out the envelope, accordingly adjust the response mapping part.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi SapAll.

      is my Question not clear.

      trying to make it clear in addition to above explanation :

      I have created BPM Start-Rec-Send-Stop for PI to get IDOC from SAP & send it to web services synchronously. but I have created mapping, Service Interface for sending the same response which PI get from web service to SAP. but I have not used BPM for this.


      when I tested the Interface I can see the messages in moni related to IDOC to Web service, Web service to PI. but I don't see the messages related to PI to SAP.

      can any one help me in this.

      Regards.

      Jagdish.