uCosminexus Application Server, Web Service Development Guide
Specify the javax.xml.bind.annotation.XmlElement annotation in an argument or a return value of an SEI service method. When specified, the annotation is mapped to the javax.xml.bind.annotation.XmlElement annotation of the property of the generated request bean or response bean.
Specify the javax.xml.bind.annotation.XmlElement annotation in a wrapper style. The operation is not guaranteed if you specify the annotation in a non-wrapper style.
The following is an example of the mapping where the javax.xml.bind.annotation.XmlElement annotation is used.
Figure 16-18 Example of the mapping where javax.xml.bind.annotation.XmlElement annotation is used
The name element is mapped to the name element of the javax.xml.bind.annotation.XmlElement annotation that annotates the properties of the generated request bean or response bean.
The following are the points to be noted if the javax.xml.bind.annotation.XmlElement annotation co-exists with the javax.jws.WebParam annotation or the javax.jws.WebResult annotation:
The namespace element is mapped to the namespace element of the javax.xml.bind.annotation.XmlElement annotation that annotates the properties of the generated request bean or response bean.
The following are the points to be noted if the javax.xml.bind.annotation.XmlElement annotation co-exists with the javax.jws.WebParam annotation or the javax.jws.WebResult annotation:
The nillable element is mapped to the nillable element of the javax.xml.bind.annotation.XmlElement annotation that annotates the properties of the generated request bean or response bean.
You can specify true or false in the nillable element. If you specify false, the nillable element is not mapped to the javax.xml.bind.annotation.XmlElement annotation of the properties of the generated request bean or response bean.
The required element is mapped to the required element of the javax.xml.bind.annotation.XmlElement annotation that annotates the properties of the generated request bean or response bean.
You can specify true or false in the required element. If you specify false, the required element is not mapped to the javax.xml.bind.annotation.XmlElement annotation of the properties of the generated request bean or response bean.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.