uCosminexus Application Server, Web Service Development Guide

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

20.2 Notes on creating WSDL

This section describes the notes on creating WSDL.

Organization of this section
(1) Values specifiable in the NCName type
(2) Coding the SOAP body and SOAP header and the referenced wsdl:part element
(3) Values specifiable in the location attribute of the soap:address element or soap12:address element

(1) Values specifiable in the NCName type

With the Cosminexus JAX-WS functionality, as long as you do not violate the limitations for the xsd:NCName type in the XML Schema specifications, you can use one-byte alphanumeric characters (0 to 9, A to Z, a to z) and underscore (_). If you use characters other than one-byte alphanumeric characters and underscore, the operations are not guaranteed.

(2) Coding the SOAP body and SOAP header and the referenced wsdl:part element

This point describes the coding of the SOAP Body and SOAP Header that are coded as the child elements of the wsdl:input element and wsdl:output element, and the coding of the wsdl:part element referenced from the SOAP Body and SOAP Header.

The description hereafter uses the SOAP 1.1 specifications for the examples. For the SOAP 1.2 specifications, substitute and read the Namespace and the element names, and the attribute values.

(a) When the SOAP Header is not defined

Whether you code the parts attribute in the soap:body element or not, code only one wsdl:part element in the child element of the wsdl:message element referenced from the wsdl:input element or wsdl:output element that are the parent elements.

The following figure shows an example of coding when the soap:header element is not coded.

Figure 20-3 Example of coding when the soap:header element is not coded

[Figure]

(b) When the SOAP Header is defined

To code the soap:header element, define the coding according to the following contents:

The following figure shows an example of coding when the soap:header element is coded.

Figure 20-4 Example of coding when the soap:header element is coded

[Figure]

(3) Values specifiable in the location attribute of the soap:address element or soap12:address element

You can specify a URL with the following format in the location attribute of the soap:address element or the soap12:address element:

#1
You can only specify http:// or https:// as the Namespace. You cannot specify other protocols. If you specify a protocol other than http:// and https:// is specified, the operations are not guaranteed.

#2
You can specify a string complying with the RFC2396 specifications. You can specify the string in the IPv4 and IPv6 format.
However, you cannot specify the following formats. If the following formats are specified, the operations are not guaranteed:
  • Query string (Example) http://example.com/?a=b
  • Anchor (Example) http://example.com/index.html#anchor
  • Port number (Example) http://example.com:8080/
  • User name/ Password (Example) http://user:password@example.com
  • Percent-encoded characters (Example) http://%E4%BD%BF%E7%94%A8

#3
You can specify a string using only the numeric characters 0 to 9. If other characters are specified, the operations are not guaranteed.

#4
You can specify a string complying with the RFC2396 specifications. You can also specify percent-encoded characters ((Example) http://%E4%BD%BF%E7%94%A8).