Skip to Content
0
Jul 08, 2020 at 12:27 PM

SOAP response not returning key field sent_2

49 Views

Hi,

I tried solution provided by Sriprasad Shivaram Bhat posted in https://answers.sap.com/questions/13088128/soap-response-not-returning-key-field-sent.html

I put this in content modifier after message mapping -

<ReturnInfoSet> ${in.body} <EmpId>${property.EmpId}</EmpId> </ReturnInfoSet>

But the issue is after message mapping, below output is coming -

<?xml version="1.0" encoding="UTF-8"?><ReturnInfo><Status>01</Status></ReturnInfo>

And If I restructure data using content modifier ,output is as below -

<ReturnInfoSet>

<?xml version="1.0" encoding="UTF-8"?><ReturnInfo><Status>01</Status></ReturnInfo>

<EmpId>123</EmpId>

</ReturnInfoSet>

But I expect output as -

<ReturnInfoSet>

<ReturnInfo>

<Status>01</Status>

<EmpId>123</EmpId>

</ReturnInfo>

</ReturnInfoSet>

How to achieve this output. where EmpId (The property which I set) is under ReturnInfo.

Thanks.