AnsweredAssumed Answered

Remove Soap Envelope from the Input Request

Question asked by sujith.59171732 on Jul 5, 2018
Latest reply on Jul 5, 2018 by brianbrinley

Hello All,

 

I am getting the below incoming request payload to a Boomi Webservice Server Listner process.

The payload have the soap envelope in it ,and the namespace is not fixed , it can change w.r.to the application it is sending and I am only interested in the XML profile send inside the body tag (<soap:Body>)

Is there any way to retrieve only that part of the payload . I have tried String Replace in data process , that's not the way , because the namespace is not consistent as I said above (see sample request#2 below) 

 

Request#1

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<soap:Body>

< test1 xmlns="http://Microsoft.LobServices">

<element1>Sample1</element1>

</test1>

</soap:Body>

</soap:Envelope> 

 

Expected Output

 

< test xmlns="http://Microsoft.LobServices">

<element>Sample</element>

</test>

 

Request#2

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

      < test2 xmlns="http://Microsoft.LobServices">

      <element1>Sample2</element1>

      </test2>

</s:Body>
</s:Envelope>

 

Expected Output

      < test2 xmlns="http://Microsoft.LobServices">

      <element1>Sample2</element1>

      </test2>

Outcomes