You need to sign in to do that
Don't have an account?

How can we insert namspace in SOAP header.
Hi my current SOAP request looks like below:-
<env:Header>
<Security xmlns ="http://schemas.xmlsoap.org/ws/2003/06/secext">
<UsernameToken>
<Username>abcde</Username>
<Password>abc123</Password>
</UsernameToken>
</ Security>
</env:Header>
I want it convert as below:-
<env:Header>
<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2003/06/secext" soapenv:mustUnderstand="1">
<wsse:UsernameToken>
<wsse:Username>abcde</wsse:Username>
<wsse:Password Type="wsse:PasswordText">abc123</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</env:Header>
Basically,I want to add wsse in the envelope.I want to know if this is possbile through Apex class or is there any other way to achive it.
Thank you for the help.