uCosminexus Application Server, Web Service Development Guide

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

16.2.22 javax.xml.ws.WebServiceProvider annotation

Specify the javax.xml.ws.WebServiceProvider annotation in the class that implements the javax.xml.ws.provider interface, and this annotation declares that the class that satisfies the requirements of the provider defines the endpoint of the Web Service.

You can specify only one annotation from the javax.xml.ws.WebServiceProvider and javax.jws.WebService annotations. If you specify the javax.xml.ws.WebServiceProvider and javax.jws.WebService annotations together, an error message will output to the standard error output and logs (KDJW61098-E).

The javax.xml.ws.WebServiceProvider annotation is referenced only when starting the Web Services. This is not interpreted when executing the apt command or the cjwsgen command.

Organization of this subsection
(1) targetNamespace element (javax.xml.ws.WebServiceProvider)
(2) serviceName element (javax.xml.ws.WebServiceProvider)
(3) portName element (javax.xml.ws.WebServiceProvider)
(4) wsdlLocation element (javax.xml.ws.WebServiceProvider)

(1) targetNamespace element (javax.xml.ws.WebServiceProvider)

In the targetNamespace element, specify the http:// protocol or the urn: protocol as a name space. You can specify the following formats and character strings for the name space:

(2) serviceName element (javax.xml.ws.WebServiceProvider)

Specify the serviceName element with single-byte alphanumeric characters and underscores (_). If you specify any other character, the operation is not guaranteed (no error message is displayed).

(3) portName element (javax.xml.ws.WebServiceProvider)

Specify the portName element with single-byte alphanumeric characters and underscores (_). If you specify any other character, the operation is not guaranteed (no error message is displayed).

(4) wsdlLocation element (javax.xml.ws.WebServiceProvider)

For details about the wsdlLocation element, see the section 10.6 Issuing the Meta data.