uCosminexus Application Server, Web Service Development Guide
You can customize the mapping of Java to WSDL by using annotations.
The following figure shows an example of customization using annotations:
Figure 16-11 Example of customization using annotations
When you execute the apt command or the cjwsgen command, the javax.xml.ws.WebEndpoint and javax.xml.ws.WebServiceClient annotation automatically given by the cjwsimport command are ignored (warning message is not output). Also, if an un-supported annotation is specified, the annotation is ignored. At this time, if the annotation is not supported even in the annotation processor provided by functionality other than the Cosminexus JAX-WS functionality, a warning message of the apt command is output.
The annotations include annotations that can be defined in SEI, annotations that can be defined in the Web Service Implementation Class, and the annotations that can be defined in both. However, if the endpointInterface element of the javax.jws.WebService annotation is not used, the abstract information is extracted from the information of the Web Service Implementation Class and it is considered that implicit SEI is present. Only in this case, the definition of annotations defined in SEI is allowed in the Web Service Implementation Class.
Even if the annotation element is explicitly customized using the same value as the default value, the annotation is processed as if the element value is not specified.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.