The @ResponseWrapper annotation
The @ResponseWrapper annotation is defined by the javax.xml.ws.ResponseWrapper interface. It is placed on the methods in the SEI. As the name implies, @ResponseWrapper specifies the Java class that implements the wrapper bean for the method parameters that are included in the response message sent in a remote invocation. It is also used to specify the element names, and namespaces, used by the runtime when marshalling and unmarshalling the response messages.
The following table describes the properties of the @ResponseWrapper annotation.
Property |
Description |
---|---|
localName |
Specifies the local name of the wrapper element in the XML representation of the response message. The default value is the name of the method with Response appended or the value of the @WebMethod annotation's operationName property with Response appended. |
targetNamespace |
Specifies the namespace under which the XML wrapper element is defined. The default value is the target namespace of the SEI. |
className |
Specifies the full name of the Java class that implements the wrapper element. |