Skip to Content
avatar image
Former Member

SYNC flow RESPONSE mapping not working in PO

Hi Experts,


I am working on simple Sync request/response flow in PO. I have imported the WSDL and done the request-request and response-response mapping. and in the Response mapping, I have only one field which is populating constant.

"Error encountered while executing mapping: com.sap.aii.af.service.mapping.MappingException: Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_XXX_V01_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Content is not allowed in prolog"

and the response is coming blank. somehow the response mapping is not getting executed.

i also tried to create a new structure instead of using WSDL for response mapping. but its still the same.

The same flow/setup works fine in PI. WSDL is perfectly fine too.

Can someone please advise where the issue could be.

thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Dec 20, 2017 at 10:38 AM

    I think there is some issue in the request mapping.Is your request mapping executed fine?

    Get the payload from Monitoring and run in test tab.

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Smith,

      I think since your getting blank response there response mapping is executed. I mean no data at all. Whereas in mapping you will be just removing the field not entire XML.

      The response will always be blank?If that is the case you have to handle it using Java or XSLT code to form a dummy XML.

  • avatar image
    Former Member
    Dec 20, 2017 at 12:42 PM

    Instead of Req-Req, and Response- Response SYNC flow, I tred Async flow(Req- response) and it is working fine.

    Some issue with the SYNC flow where the Response mapping is creating empty payload or not being called correctly at runtime.

    Can some one provide your valuable inputs please

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 20, 2017 at 11:11 AM

    Hi Smith!

    Depending on what mapping is shown in error message, request or response, check respective message contents in Message monitor. This error the most likely says that non-XML payload is provided as message mapping input.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Evgenily,

      XML payload is ok..i took the payload from Message monitor and also when i test in mapping, it executes succesfully.

      when i run end to end or from RWB, the response mapping is called but fails giving above error and payload is also empty

      thanks

  • avatar image
    Former Member
    Dec 21, 2017 at 04:04 PM

    Any valuable suggestions please

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 22, 2017 at 04:40 PM

    I suggest this

    - Try your scenario with soapui,

    - try without message mapping for response, just to see if the answer comes right from backend.

    - verifiy the sender channel quality of service "Best Effort"

    Regards

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 28, 2017 at 06:00 PM

    Go to your integration directory and remove the Software Component version of the sender. Make it blank. This way it will not validate Service interface against the response and will not error out.

    Add comment
    10|10000 characters needed characters exceeded