Cloud Application Integration (On-Premises) : Administering CloudStreams : Virtual Services : Creating a New Virtual Service (SOAP) : IS Service Constructs : Using the Security API in IS Services : pub.cloudstreams.security.ws.AddWSAddressingHeaders
pub.cloudstreams.security.ws.AddWSAddressingHeaders
Adds WS-Addressing headers to a SOAP request sent by the client before CloudStreams forwards the request to the native service. This service includes the following input parameters:
Parameter
Data Type
Description
Default Value
isVersionSubmission
Boolean
Java Type: Boolean. The WS-Addressing version that should be used.
*If true, the WS-Addressing submission namespace http://schemas.xmlsoap.org/ws/2004/08/addressing will be used.
*If false, the Final specification namespace http://www.w3.org/2005/08/addressing will be used.
False
To
String
Java Type: String. This value corresponds to the /wsa:To addressing header. You must specify a value that corresponds to the destination of the request message. If this value is not specified, then depending on the isVersionSubmission parameter value, one of the following anonymous EPR values will be sent:
If isVersionSubmission is set to true, the anonymous EPR value is: http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous.
If isVersionSubmission is set to false, the anonymous EPR value is: http://www.w3.org/2005/08/addressing/anonymous.
From
String
Java Type: String. This value corresponds to the /wsa:From addressing header and refers to the source of the message.
""
Action
String
Java Type: String. This value corresponds to the /wsa:Action addressing header. By default, this property has the same value as the operation on the virtual service being invoked (which will usually correspond to the same operation on the native service). But you can specify a different value corresponding to the native service being called.
URI identifying input operation corresponding to a WSDL port type being called on the virtual service.
MessageContext
Object
Required. Java Type: org.apache.axis2. context.MessageContext. CloudStreams will place a MessageContext parameter into the pipeline before executing the IS service call.
org.apache. axis2.context. MessageContext instance
actor
String
Java Type: String. Indicates the value of the SOAP actor attribute if a new security header is being added to the SOAP request. If the request already has a security header with this attribute specified in it, then this value will not overwrite it.
""
mustUnderstand
Boolean
Java Type: Boolean. Specifies whether the security header will have the mustUnderstand attribute set to 0 or 1 (false / true). If the security header already has this attribute set, then this value will not overwrite it.
False
Example of using AddWSAddressingHeaders:
The sample service shown below is configured by providing the MessageContext parameter.
Copyright © 2015- 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback