function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
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:-
<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>
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.
Does this have anything to do with REST?
Are you wanting to send Salesforce a SOAP message with that header or do you want to use Salesforce to send that message to an external endpoint?
Hi,
I am trying to send SOAP request to my webservice appliaction from salesforce(i.e. I am making a callout from salesforce to my web application.)
Thanks
If your WSDL has the SOAP header in it, WSDL2Apex should generate a public field on the stub that you can use to send your header.
Hi
Thank you for the reply.I am new to this development.Could you please elaborate.
Thank you
I'd suggest reading the section on apex callouts in the apex documentation.
Thank you.I will do that.
Does this have anything to do with REST?
Are you wanting to send Salesforce a SOAP message with that header or do you want to use Salesforce to send that message to an external endpoint?
Hi,
I am trying to send SOAP request to my webservice appliaction from salesforce(i.e. I am making a callout from salesforce to my web application.)
Thanks
If your WSDL has the SOAP header in it, WSDL2Apex should generate a public field on the stub that you can use to send your header.
Hi
Thank you for the reply.I am new to this development.Could you please elaborate.
Thank you
I'd suggest reading the section on apex callouts in the apex documentation.
Thank you.I will do that.