Skip to Content
0

SYNC flow RESPONSE mapping not working in PO

Dec 20, 2017 at 10:07 AM

114

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

6 Answers

Raghuraman S Dec 20, 2017 at 10:38 AM
0

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.

Show 4 Share
10 |10000 characters needed characters left characters exceeded
Former Member

hi,

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

0

Can you run the payload in SOAP UI and see if reponse is coming back?

0
Former Member

Hi Raghuram,

No.its not coming. response mapping is somehow not getting executed.

if i use the same mapping for request it works fine. I tested with using both Request and response mapping in "Request" and keeping Response as blank in the Operation mapping. it is working fine.

but if i keep any mapping at the response, it is giving the same error.

0

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.

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

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

Share
10 |10000 characters needed characters left characters exceeded
Evgeniy Kolmakov Dec 20, 2017 at 11:11 AM
0

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.

Show 1 Share
10 |10000 characters needed characters left 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

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

Any valuable suggestions please

Share
10 |10000 characters needed characters left characters exceeded
Juan Vasquez Dec 22, 2017 at 04:40 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Anurag Gupta Dec 28, 2017 at 06:00 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded