Skip to Content
0
Nov 15 at 06:09 AM

How remove and change prefix in payload

170 Views Last edit Nov 15 at 08:40 AM 7 rev

Dear sir,

I have done interface REST to RFC in PI 7.5

Third party is sending request as below

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

"http://GI.COM/"

> <DocDetails> <PASSWORD>1</PASSWORD> </DocDetails> </MT_SENDER>'

I could receive below format as below request payload

'<?xml version="1.0" encoding="UTF-8"?> <ns0:MT_SENDERxmlns:ns0=

"http://GI.COM/"

> <DocDetails> <PASSWORD>1</PASSWORD> </DocDetails> </ns0MT_SENDER>'

So here how to remove ns0 at before MT_SENDER and how to replace ns0 with ns2 at before http://GI.COM

Requesting to you Please give suggestion .

Thanks and Regards,

Dileep