Which of the following option represents the behavior of the endpoint, when the addressing feature is enabled on the service with the use of @Addressing() annotation.
A.
The endpoint accepts only messages containing Addressing headers and rejects any messages not containing Addressing headers.
B.
The endpoint accepts any messages with or without any Addressing headers and does not validate addressing headers because “required” annotation element is not true.
C.
The endpoint accepts messages only if the messages contain wsa:Action header but does not require presence of any other addressing headers.
D.
The endpoints accepts messages with or without addressing headers. If the message contains wsa:Action header, it validates all other addressing headers in the message.
suppose the request has one wsa:action header but with no wsa:replyTo, the request would be rejected? What if the runtime default to the requester address?
Asynchronous web services with WS-Addressing
WS-Addressing in short
a W3C standard for embedding addressing information in the SOAP message = less dependence on the transport protocol;
message identification via MessageID;
request-response matching via RelatesTo (very important for asynchronous scenarios; the synchronous case does not require this because it is tied to a single HTTP connection);
support for more complex message flows via ReplyTo and FaultTo.
http://victor-ichim.blogspot.ae/2011/09/asynchronous-web-services-with-ws.html
[action] : URI (mandatory)
An identifier that uniquely (and opaquely) identifies the semantics implied by this message.
It is RECOMMENDED that value of the [action] property is a URI identifying an input, output, or fault message within a WSDL port type. An action may be explicitly or implicitly associated with the corresponding WSDL definition. Section 3.3 below describes the mechanisms of association. Finally, if in addition to the [action] property, a SOAP Action URI is encoded in a request, the URI of the SOAP Action MUST be the same as the one specified by the [action] property.
@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Action
The Action annotation allows explicit association of a WS-Addressing Action message addressing property with input, output, and fault messages of the mapped WSDL operation.
In this version of JAX-WS there is no standard way to specify Action values in a WSDL and there is no standard default value. It is intended that, after the W3C WG on WS-Addressing has defined these items in a recommendation, a future version of JAX-WS will require the new standards.