The getQuote request message is sent from the Web service client MC The MC Receiver closes the connection by sending back an empty response HTTP Upon timer expiration, the MC Initiator sends a MakeConnection message to the As the MC Receiver has not compl

3-18 Programming Advanced Features of JAX-WS Web Services for Oracle WebLogic Server Figure 3–2 MakeConnection Message Flow As shown in the previous figure, the MakeConnection message flow is as follows:

1. The getQuote request message is sent from the Web service client MC

Initiator to the Web service MC Receiver. The ReplyTo header contains a MakeConnection anonymous URI that specifies the UUID for the MC Initiator. The MC Receiver receives the getQuote message. The presence of the MakeConnection anonymous URI in the ReplyTo header indicates that the response message can be sent back on the connection’s back channel or the client will use MakeConnection polling to retrieve it.

2. The MC Receiver closes the connection by sending back an empty response HTTP

202 to the MC Initiator. Upon receiving an empty response, the MC Initiator initializes and starts its polling mechanism to enable subsequent polls to be sent to the MC Receiver. Specifically, the MC Initiator polling mechanism starts a timer with expiration set to the interval configured for the time between successive polls.

3. Upon timer expiration, the MC Initiator sends a MakeConnection message to the

MC Receiver with the same MakeConnection anonymous URI information in its message.

4. As the MC Receiver has not completed process the getQuote operation, no

response is available to send back to the MC Initiator. As a result, the MC Receiver closes the connection by sending back another empty response HTTP 202 indicating that no responses are available at this time. Upon receipt of the empty message, the MC Initiator restarts the timer for the MakeConnection polling mechanism. Before the timer expires, the getQuote operation completes. Since the original request contained a MakeConnection anonymous URI in its ReplyTo header, the MC Receiver stores the response and waits to receive the next MakeConnection message with a matching address.

5. Upon timer expiration, the MC Initiator sends a MakeConnection message to the

MC Receiver with the same MakeConnection anonymous URI information in its message.

6. Upon receipt of the MakeConnection message, the MC Receiver retrieves the