Package oracle.soa.api.message
Class CallbackAddressingUtil
java.lang.Object
oracle.soa.api.message.CallbackAddressingUtil
A Callback utility class for creating callback addressing header
Example Header:
Example Usage:
<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>
Example Usage:
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);
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe callback reference parameter element namestatic final StringThe namespace of the callback reference parameter elementstatic final StringThe prefix used for the callback reference parameter element namespacestatic final StringThe connection factory attribute of the callback reference parameter elementstatic final StringThe name attribtue of callback reference parameter property elementsstatic final StringThe callback reference parameter property element namestatic final StringThe value attribtue of callback reference parameter property elements -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementcreateCallbackReplyToHeader(WSAddressingVersion version, String servicePath, Map<String, String> properties) Creates a WS-Addressing ReplyTo header with a SOA direct binding callback reference parameter for asynchronous repliesstatic ElementcreateCallbackReplyToHeader(WSAddressingVersion version, String servicePath, Map<String, String> properties, String factoryName) Creates a WS-Addressing ReplyTo header with a SOA direct binding callback reference parameter for asynchronous replies
-
Field Details
-
CALLBACK_PREFIX
The prefix used for the callback reference parameter element namespace- See Also:
-
CALLBACK_NAMESPACE
The namespace of the callback reference parameter element- See Also:
-
CALLBACK_ELEMENT
The callback reference parameter element name- See Also:
-
CONNECTION_FACTORY_ATTRIBUTE
The connection factory attribute of the callback reference parameter element- See Also:
-
PROPERTY_ELEMENT
The callback reference parameter property element name- See Also:
-
NAME_ATTRIBUTE
The name attribtue of callback reference parameter property elements- See Also:
-
VALUE_ATTRIBUTE
The value attribtue of callback reference parameter property elements- See Also:
-
-
Method Details
-
createCallbackReplyToHeader
public static Element createCallbackReplyToHeader(WSAddressingVersion version, String servicePath, Map<String, String> properties) Creates a WS-Addressing ReplyTo header with a SOA direct binding callback reference parameter for asynchronous replies- Parameters:
version- The WS-Addressing version to useservicePath- The callback service pathproperties- The callback connection/invocation properties- Returns:
- A ReplyTo header element
-
createCallbackReplyToHeader
public static Element createCallbackReplyToHeader(WSAddressingVersion version, String servicePath, Map<String, String> properties, String factoryName) Creates a WS-Addressing ReplyTo header with a SOA direct binding callback reference parameter for asynchronous repliesThe specified
DirectConnectionFactoryimplementation must be available to the server in order for this to work.- Parameters:
version- The WS-Addressing version to useservicePath- The callback service pathproperties- The callback connection/invocation propertiesfactoryName- The name of aDirectConnectionFactoryimplementation, which the server should use to send the response message- Returns:
- A ReplyTo header element
-