SOAP

Following functions help you work with SOAP.

String soapInsertWSUsernameToken(String user, String password, String envelope)

Creates WS username token, build an associated security header and inserts it as child into the given SOAP Envelope.

Parameters :

  • user : The username to use
  • password : The password to use
  • envelope : The soap envelope to update

Returns : The soap envelope with the security header

Examples :

SpEL : ${#soapInsertWSUsernameToken('username', 'password', #soapEnvelope)}