uCosminexus Application Server, Web Service Development Guide

[Contents][Glossary][Index][Back][Next]

19.3.1 javax.xml.ws.WebServiceRef annotation

The following table lists the support range and elements of the javax.xml.ws.WebServiceRef annotation.

Table 19-33 List of elements of the annotations of the JAX-WS

No. Annotation Support
Annotation name Element name
1 javax.xml.ws.WebServiceRef lookup N
2 mappedName N
3 name N
4 type N
5 value Y
6 wsdlLocation Y

Legend:
Y: Indicates the annotations and elements that you can specify.
N: Indicates the annotations and elements that you cannot specify (not supported).

The support range for each element is as follows:

Organization of this subsection
(1) value elements(javax.xml.ws.WebServiceRef)
(2) wsdlLocation element (javax.xml.ws.WebServiceRef)

(1) value elements(javax.xml.ws.WebServiceRef)

The value element specifies the service class that inherits javax.xml.ws.Service.

If the javax.xml.ws.WebServiceRef annotation is specified for methods or fields of the service class type, you cannot specify the value element. If you specify the value element, the operation is not gurenteed.

You must specify the value element when specifying the javax.xml.ws.WebServiceRef annotation for the fields or methods of the port type. If you do not specify the value element, the operation is not guerenteed.

(2) wsdlLocation element (javax.xml.ws.WebServiceRef)

The wsdlLocation element specifies the location of aWSDL document of Web Services.

You can specify the element in the following formats:

Notes when specifying the wsdlLocation element are as follows: