function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How can we insert namspace in SOAP header.

Hi my current SOAP request looks like below:-



            <Security xmlns ="">





            </ Security>



I want it convert as below:-



            <wsse:Security xmlns:wsse="" soapenv:mustUnderstand="1">



                                                <wsse:Password Type="wsse:PasswordText">abc123</wsse:Password>





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.