public class CallbackAddressingUtil
extends java.lang.Object
Example Header:
<wsa:MessageID>D6202742-D9D9-4023-8167-EF0AB81042EC</wsa:MessageID>
<wsa:ReplyTo xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>soadirect:/default/MyComposite!1.0/MyReference#MyComponent</wsa:Address>
<wsa:ReferenceParameters>
<soa:callback xmlns:soa="http://xmlns.oracle.com/soa/direct"
connection-factory="oracle.soa.api.JNDIDirectionConnectionFactory">
<soa:property name="oracle_soa_api_invocation_direct_bean" value="SOADirectConnectionBean"/>
<soa:property name="java_naming_provider_url" value="t3://HOST:PORT"/>
<soa:property name="java_naming_factory_initial" value="weblogic.jndi.WLInitialContextFactory"/>
</soa:callback>
</wsa:ReferenceParameters>
</wsa:ReplyTo>
String servicePath = "soadirect:/default/MyComposite/1.0/MyReference";
String factory = "oracle.soa.api.JNDIDirectConnectionFactory";
// jndi properties for lookup
Map<String, String> props = new HashMap<String, String>();
Element replyTo =
CallbackAddressingUtil.createCallbackReplyToHeader(WSAddressingVersion.August2005.,
servicePath,
props,
factory);
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CALLBACK_ELEMENT
The callback reference parameter element name
|
static java.lang.String |
CALLBACK_NAMESPACE
The namespace of the callback reference parameter element
|
static java.lang.String |
CALLBACK_PREFIX
The prefix used for the callback reference parameter element namespace
|
static java.lang.String |
CONNECTION_FACTORY_ATTRIBUTE
The connection factory attribute of the callback reference parameter element
|
static java.lang.String |
NAME_ATTRIBUTE
The name attribtue of callback reference parameter property elements
|
static java.lang.String |
PROPERTY_ELEMENT
The callback reference parameter property element name
|
static java.lang.String |
VALUE_ATTRIBUTE
The value attribtue of callback reference parameter property elements
|
Modifier and Type | Method and Description |
---|---|
static org.w3c.dom.Element |
createCallbackReplyToHeader(WSAddressingVersion version, java.lang.String servicePath, java.util.Map properties)
Creates a WS-Addressing ReplyTo header with a SOA direct binding callback reference parameter for asynchronous replies
|
static org.w3c.dom.Element |
createCallbackReplyToHeader(WSAddressingVersion version, java.lang.String servicePath, java.util.Map properties, java.lang.String factoryName)
Creates a WS-Addressing ReplyTo header with a SOA direct binding callback reference parameter for asynchronous replies
|
public static final java.lang.String CALLBACK_ELEMENT
public static final java.lang.String CALLBACK_NAMESPACE
public static final java.lang.String CALLBACK_PREFIX
public static final java.lang.String CONNECTION_FACTORY_ATTRIBUTE
public static final java.lang.String NAME_ATTRIBUTE
public static final java.lang.String PROPERTY_ELEMENT
public static final java.lang.String VALUE_ATTRIBUTE
public static org.w3c.dom.Element createCallbackReplyToHeader(WSAddressingVersion version, java.lang.String servicePath, java.util.Map properties)
version
- The WS-Addressing version to useservicePath
- The callback service pathproperties
- The callback connection/invocation propertiespublic static org.w3c.dom.Element createCallbackReplyToHeader(WSAddressingVersion version, java.lang.String servicePath, java.util.Map properties, java.lang.String factoryName)
The specified DirectConnectionFactory
implementation must be available to the server in order for this to work.
version
- The WS-Addressing version to useservicePath
- The callback service pathproperties
- The callback connection/invocation propertiesfactoryName
- The name of a DirectConnectionFactory
implementation, which the server should use to send the response message