Using Asynchronous Request-Response: Main Steps

2-2 Programming Advanced Features of JAX-RPC Web Services for Oracle WebLogic Server naming conventions and JWS annotations to specify these methods to the JWS compiler. For example, if the asynchronous operation is called getQuoteAsync, then these methods might be called onGetQuoteAsyncResponse and onGetQuoteAsyncFailure .

2.2 Using Asynchronous Request-Response: Main Steps

The following procedure describes how to create a client Web service that asynchronously invokes an operation in a different Web service. The procedure shows how to create the JWS file that implements the client Web service from scratch; if you want to update an existing JWS file, use this procedure as a guide. For clarity, it is assumed in the procedure that: ■ The client Web service is called StockQuoteClientService. ■ The StockQuoteClientService service is going to invoke the getQuoteString operation of the already-deployed StockQuoteService service whose WSDL is found at the following URL: http:localhost:7001asyncStockQuote?WSDL It is further assumed that you have set up an Ant-based development environment and that you have a working build.xml file to which you can add targets for running the jwsc Ant task and deploying the generated service. For more information, see the following sections in Getting Started With JAX-RPC Web Services for Oracle WebLogic Server: ■ Use Cases and Examples ■ Developing WebLogic Web Services ■ Programming the JWS File ■ Invoking Web Services Note: For information about using asynchronous request-response with other asynchronous features, such as Web service reliable messaging or buffering, see Chapter 6, Using the Asynchronous Features Together. This section describes how to use the asynchronous request-response feature on its own. The asynchronous request-response feature works only with HTTP; you cannot use it with the HTTPS or JMS transport. Table 2–1 Steps to Use Asynchronous Request-Response Step Description 1 Configure the WebLogic Server instances. Configure the asynchronous response service, as described in Section 2.3, Configuring the Host WebLogic Server Instance for the Asynchronous Web Service . 2 Create a new JWS file, or update an existing one, that implements the StockQuoteClientServic e Web service. Use your favorite IDE or text editor. See Section 2.4, Writing the Asynchronous JWS File . Invoking a Web Service Using Asynchronous Request-Response 2-3 When you invoke the StockQuoteClientService Web service, which in turn invokes the StockQuoteService Web service, the second invoke will be asynchronous rather than synchronous.

2.3 Configuring the Host WebLogic Server Instance for the Asynchronous Web Service