uCosminexus Application Server, Web Service Development Guide
When you use the addressing functionality, the operations for receiving request messages depend on the contents of the elements set up in the javax.xml.ws.soap.Addressing annotation specified in the service implementation class. The following table lists and describes the relationship between the javax.xml.ws.soap.Addressing annotation and the operations for receiving request messages.
Table 37-1 javax.xml.ws.soap.Addressing annotation and operations for receiving request messages
| No. | javax.xml.ws.soap.Addressing annotation | Operation when a request message is received | |||
|---|---|---|---|---|---|
| Addressing header | Communication | ||||
| enabled element | required element | Request message | Response message | ||
| 1 | true | true | Y | Y | Successful |
| 2 | N | N (Fault message) |
Failure | ||
| 3 | false | Y | Y | Successful | |
| 4 | N | N | Successful | ||
| 5 | false | true | Y | N | Successful |
| 6 | N | N | Successful | ||
| 7 | false | Y | N | Successful | |
| 8 | N | N | Successful | ||
If the javax.xml.ws.soap.Addressing annotation is not specified in the service implementation class, the addressing functionality is disabled. In such a case, irrespective of the presence or absence of the addressing header, the Web Service receives the request message. Also, since the addressing functionality is disabled, the Web Service sends a response message without the addressing header even if the received request message has the addressing header specified. Because the response messages do not exist for one-way operations, the addressing functionality in which the one-way operations are used is not supported. The operation is not guaranteed if you use the addressing functionality with one-way operations.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.