uCosminexus Application Server, Web Service Development Guide
In the asynchronous communication using the addressing functionality, the Web Service client sends a request message for invoking a service method that exists in a Web Service, and then ends the processing without receiving the resulting response message from the Web Service. The Web Service sends the response message to another Web Service.
The following figure shows the flow of asynchronous communication:
Figure 37-2 Flow of asynchronous communication
To use the asynchronous communication, set up the Web Service URL that sends response messages in the wsa:ReplyTo/wsa:Address and wsa:FaultTo/wsa:Address elements of the addressing header.
The following are the examples of the contents specified in the addressing header with the conditions:
<To xmlns="http://www.w3.org/2005/08/addressing"> http://localhost/addressing/AddNumbersImplService </To> <Action xmlns="http://www.w3.org/2005/08/addressing"> http://sample.com/input </Action> <ReplyTo xmlns="http://www.w3.org/2005/08/addressing"> <Address> http://localhost/responseserver/ResponseServerImplService </Address> </ReplyTo> <FaultTo xmlns="http://www.w3.org/2005/08/addressing"> <Address> http://localhost/responseserver/FaultServerImplService </Address> </FaultTo> <MessageID xmlns="http://www.w3.org/2005/08/addressing"> uuid:b19439fa-7a29-4045-93d9-56d6a2183afd </MessageID> |
This subsection describes the precautions for using the asynchronous communication.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.