Reputation: 161
I need to add a new Namespace to the SOAP Envelope. At the moment it's looking like that:
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
But what I need is this:
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">
Maybe you can give me the code for the header mediator. WSO2 ESB Documantation isn't working at the moment. I get a Synthax error there....
Upvotes: 2
Views: 1646
Reputation: 17850
Use the XSLT mediator with the source attribute having the period value for its xpath. This will make the full SOAP message be processed by the XSLT template instead of the payload only.
<xslt key="yourXsltTemplate" source=".">
Upvotes: 2
Reputation: 9692
Using header mediator you can add soap headers not the namespace at envelope element AFAIK. Anyway documentation should work.Please check. To add a namespace in the middle of sequence, you could use xslt mediator
Upvotes: 0