CentraSite Documentation : Runtime Governance with CentraSite : Invoking webMethods IS Services in Virtual Services : Using the Security API in webMethods IS Services : pub.mediator.addressing:AddWSAddressingHeaders
pub.mediator.addressing:AddWSAddressingHeaders
Adds WS-Addressing headers to a SOAP request sent by the client before Mediator forwards the request to the native service.
This service includes the following input parameters:
Note:  
For reasons of legibility some of the examples below contain break lines and may not work when pasted into applications or command line tools.
In the parameter descriptions, the data type is listed first, followed by the Java type in parenthesis, for example, “Object (org.apache.axis2.context.MessageContext)”.
Input Parameters

isVersion Submission
Boolean (Boolean) (Optional) The WS-Addressing version that should be used.
*If true, the WS-Addressing submission namespace will be used.
http://schemas.xmlsoap.org/ws/2004/08/addressing
*If false, the Final specification namespace will be used.
http://www.w3.org/2005/08/addressing
The default value is: false
To
String (String) (Optional) 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, the default value depends on the isVersionSubmission property 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 is:
http://www.w3.org/2005/08/addressing/anonymous
From
String (String) (Optional) This value corresponds to the /wsa:From addressing header and refers to the source of the message.
The default value is: ""
Action
String (String) (Optional) 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 the user can specify a different value corresponding to the native service being called.
The default value is: URI identifying input operation corresponding to a WSDL port type being called on the virtual service
MessageContext
Object (org.apache.axis2.context.MessageContext) (Required) Mediator will place a MessageContext variable into the pipeline before executing the webMethods IS service call.
The default value is: org.apache.axis2.context.MessageContext instance
actor
String (String) (Optional) 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 the actor specified in it, then this value will not overwrite it.
The default value is: ""
mustUnderstand
Boolean (Boolean) (Optional) 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, this value will not overwrite it.
The default value is: false
Example of using AddWSAddressingHeaders
The sample service shown below is configured by providing the MessageContext parameter.
Copyright © 2005-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback