The @RequestWrapper annotation
The @RequestWrapper annotation is defined by the javax.xml.ws.RequestWrapper interface. It is placed on the methods in the SEI. As the name implies, @RequestWrapper specifies the Java class that implements the wrapper bean for the method parameters that are included in the request 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 request messages.
The following table describes the properties of the @RequestWrapper annotation.
Property |
Description |
---|---|
localName |
Specifies the local name of the wrapper element in the XML representation of the request message. The default value is the name of the method or the value of the @WebMethod annotation's operationName property. |
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. |