uCosminexus Application Server, Web Service Development Guide

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

16.2.14 javax.xml.ws.BindingType annotation

The javax.xml.ws.BindingType annotation is specified in the Web Service Implementation Class. If specified in SEI, this annotation is ignored. When this annotation is specified in SEI, a warning message is output to the standard error output and log and the processing continues (KDJW61079-W).

Organization of this subsection
(1) value element (javax.xml.ws.BindingType)

(1) value element (javax.xml.ws.BindingType)

In the value element, you can specify the following field values of the javax.xml.ws.soap.SOAPBinding interface.

If another field value is specified, an error message is output to the standard error output and logs. The following table describes the error messages output, when you specify an invalid value in the value element:

Table 16-19 Error messages output when specifying an invalid value in the value element (javax.xml.ws.BindingType)

No. Value of the value element Error message ID
When you execute the apt command When you execute the cjwsgen command
1 javax.xml.ws.http.HTTPBinding.HTTP_BINDING KDJW61072-E KDJW71005-E
2 An invalid value other than the binding identifier KDJW61072-E KDJW71005-E

The following table describes the mapping from the javax.xml.ws.BindingType annotation to the soap:binding element (child element of the wsdl:binding element of WSDL) or the transport attribute value of the soap12:binding element.

Table 16-20 Mapping the BindingType annotation to the transport attribute value

No SOAP version BindingType annotation value transport attribute value
1 SOAP 1.1 http://schemas.xmlsoap.org/soap/http
or
@SOAPBinding.SOAP11HTTP_BINDING
http://schemas.xmlsoap.org/soap/http
2 http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true
or
@SOAPBinding.SOAP11HTTP_MTOM_BINDING
3 SOAP 1.2 http://www.w3.org/2003/05/soap/bindings/HTTP/
or
@SOAPBinding.SOAP12HTTP_BINDING
The transport attribute value of WSDL differs depending upon the specified value of the -soap12binding option or the com.cosminexus.jaxws.publish_wsdl.soap12binding property.
4 http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true
or
@SOAPBinding.SOAP12HTTP_MTOM_BINDING

#
For the relationship between the specified value of the -soap12binding option, and the transport attribute value of a WSDL, see 14.3 cjwsgen command.
The following table describes the relationship between the specified value of the com.cosminexus.jaxws.publish_wsdl.soap12binding property and the transport attribute value of WSDL.

Table 16-21 Relationship between specified value of the property and the transport attribute value of WSDL

No Property specification Specified property value transport attribute value
1 Not specified None http://www.w3.org/2003/05/soap/bindings/HTTP/
2 Specified DEFAULT
3 WSI_BP20_TRANSPORT http://schemas.xmlsoap.org/soap/http#

#
As the transport attribute value is not clear in the standard specifications, you can use this URL in JAX-WS.