uCosminexus Application Server, Web Service Development Guide
Specify the javax.xml.bind.annotation.XmlType annotation in the exception class. When specified, the annotation is mapped to the javax.xml.bind.annotation.XmlType annotation of the created fault bean.
If you specify the javax.xml.bind.annotation.XmlType annotation in any location other than the exception class, the operation is not guaranteed.
The following is an example where mapping is done using the javax.xml.bind.annotation.XmlType annotation.
Figure 16-21 Example where mapping is done using the javax.xml.bind.annotation.XmlType annotation
The name element is mapped to the name element of the javax.xml.bind.annotation.XmlType annotation of the generated fault bean.
The namespace element is mapped to the namespace element of the javax.xml.bind.annotation.XmlType annotation of the generated fault bean.
The propOrder element is mapped to the propOrder element of the javax.xml.bind.annotation.XmlType annotation of the fault bean and the property order of the generated fault bean.
In the propOrder element, you can specify only a String type array of the property name of the property in an exception class.
Note the following points when using the propOrder element:
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.