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
Imran MohammedImran Mohammed 

Getting Wsse:security error while making webservice callout



I am trying to invoke the webservice and getting the below error message.

 Web service callout failed: WebService returned a SOAP Fault: An error was discovered processing the <wsse:Security> header faultcode=ns1:InvalidSecurity faultactor=

This is how inputeHeaders are constructed.


aa.inputHttpHeaders_x.put('sessionID', userinfo.getSessionId());        

aa.inputHttpHeaders_x.put('serverURL', serverUrl);

And here, i have the code for invoking the webservice.


Can anyone let me know why this issue is faced?


Any suggestions or response will be appreciated.

Thanks in advance.

Imran MohammedImran Mohammed

Should  Authorization parameter be set in InputHttpHeaders along with sessionId, serverUrl?

Any help or suggestion on this will be appreciated.