Skip to Content
0
Aug 29, 2017 at 06:43 AM

How to remove soap envelope, Header and Body from Response message by using xslt mapping

2425 Views Last edit Aug 29, 2017 at 07:54 AM 2 rev

Hi Team,

I am getting the response from external system as below , need to remove the <s:Envelope> <s:Header> and <s:Body> tags from the payload.

we required only the only the actual content present in the <s:Body> tag

Example:

Response Message from external systems:

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

http://www.w3.org/2003/05/soap-envelope" xmlns:a=" http://www.w3.org/2005/08/addressing">

<s:Header>

http://www.textile.com/dataservices/bidata/LogOnResponse>

</s:Header>

<s:Body>

http://www.textile.com/dataservices/bidata/2">

http://www.w3.org/2001/XMLSchema-instance">

<MessageID>1d235a14-eab3-456f-868c-86fe6a8c3e51</MessageID>

</LogOnResult>

</LogOnResponse>

</s:Body>

</s:Envelope>

Requried:

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

http://www.textile.com/dataservices/bidata/2">

http://www.w3.org/2001/XMLSchema-instance">

<MessageID>1d235a14-eab3-456f-868c-86fe6a8c3e51</MessageID>

</LogOnResult>

</LogOnResponse>

Thanks,

Ravi