Configuring the Address of the Asynchronous Response Endpoint

Invoking Web Services Asynchronously 3-11 ■ targetPort -AsyncResponse—Port name of the service accessed by the client appended by -AsyncResponse. You can configure the asynchronous client transport feature, as described in the following sections: ■ Section 3.5.1.1, Configuring the Address of the Asynchronous Response Endpoint ■ Section 3.5.1.2, Configuring the ReplyTo and FaultTo Headers of the Asynchronous Response Endpoint ■ Section 3.5.1.3, Configuring the Context Path of the Asynchronous Response Endpoint ■ Section 3.5.1.4, Publishing the Asynchronous Response Endpoint ■ Section 3.5.1.5, Configuring Asynchronous Client Transport for Synchronous Operations For more information about the AsyncClientTransportFeature constructor formats, see the WebLogic Server Javadoc.

3.5.1.1 Configuring the Address of the Asynchronous Response Endpoint

You can configure an address for the asynchronous response endpoint by passing it as an argument to the AsyncClientTransportFeature, as follows: String responseAddress = http:myserver.com:7001myReliableServicemyClientCallback; AsyncClientTransportFeature asyncFeature = new AsyncClientTransportFeatureresponseAddress; BackendService port = _service.getBackendServicePortasyncFeature; The specified address must be a legal address for the server or cluster including the network channels or proxy addresses. Ephemeral ports are not supported. The specified context must be scoped within the current application or refer to an unused context; it cannot refer to a context that is scoped to another deployed application, otherwise an error is thrown. The following tables summarizes the constructors that can be used to configure the address of the asynchronous response endpoint. Table 3–5 Constructors for Configuring the Address of the Asynchronous Response Endpoint Constructor Description AsyncClientTransportFeaturejava.lang.Str ing address Configures the address of the asynchronous response endpoint. AsyncClientTransportFeaturejava.lang.Str ing address, boolean doPublish Configures the following: ■ Address of the asynchronous response endpoint. ■ Whether to publish the endpoint at the specified address. For more information, see Section 3.5.1.4, Publishing the Asynchronous Response Endpoint . AsyncClientTransportFeaturejava.lang.Str ing address, boolean doPublish, boolean useAsyncWithSyncInvoke Configures the following: ■ Address of the asynchronous response endpoint. ■ Whether to publish the endpoint at the specified address. For more information, see Section 3.5.1.4, Publishing the Asynchronous Response Endpoint . ■ Whether to enable asynchronous client transport for synchronous operations. For more information, see Section 3.5.1.5, Configuring Asynchronous Client Transport for Synchronous Operations . 3-12 Programming Advanced Features of JAX-WS Web Services for Oracle WebLogic Server

3.5.1.2 Configuring the ReplyTo and FaultTo Headers of the Asynchronous Response Endpoint