Skip to Content
1
Jan 18, 2016 at 01:05 PM

Need XSLT/JAVA mapping

26 Views

Hi Experts,

I am working on Webservice to Webservice SYNC scenario,

My query is i am able to get the response but the response format doesn't match the format required in PI mapping.

Response format from third party is as follow:

<ns1:getFoodNameResponse xmlns:ns1='http://http.service.test.com' soapenv:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><getFoodNameReturn xsi:type='xsd:string'>Your food name is :IDLI</getFoodNameReturn></ns1:getFoodNameResponse>

whereas we require below format in PI:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:getFoodNameResponse xmlns:ns0="http://http.service.test.com">

<ns0:getFoodNameReturn>IDLI</ns0:getFoodNameReturn>

</ns0:getFoodNameResponse>

Can anyone provide XSLT or Java mapping for the same?

It's urgent..Please help 😊