uCosminexus Application Server, Web Service Development Guide

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

15.1.5 Mapping the message part to the parameter and return value (For non-wrapper style)

This subsection describes the mapping of the WSDL message part (wsdl:part child element of the wsdl:message element) to the parameters and return values of the Java methods.

This subsection describes the mapping for the non-wrapper style.

Organization of this subsection
(1) Mapping
(2) Conditions for part names
(3) Handling when multiple parts reference the same global element
(4) Precautions for mapping to the parameters
(5) Precautions for mapping to the return values

(1) Mapping

During the mapping, the first character of the message part name (name attribute of the wsdl:part element) is converted into a lower-case character in both, the request-response operations and one-way operations.

Before conversion: PartName

After conversion: partName

(2) Conditions for part names

In the part name, you can code a string that fulfills all the conditions described in the following table. However, when customizing with the binding declaration, you can code the strings that can be used as xsd:NCName type of the XML Schema specification.

Table 15-12 Conditions for strings that can be coded in the part name (non-wrapper style)

No. Conditions Examples of invalid strings Operations when invalid strings are specified
1 Strings using only one-byte alphanumeric characters (0 to 9, A to Z, a to z) and underscore (_) Hitachi_part The operation might not function properly (error message is not displayed).
2 Strings other than Java reserved words # abstract An error message is output in the standard error output and log and the processing ends (KDJW51017-E).
3 Strings that do not begin with numeric characters 1User_part An error message is output in the standard error output and log and the processing ends (KDJW51029-E).

#
You cannot code strings such as Abstract where the first character of the Java reserved word is in upper case (since the first character is converted into a lower case character due to mapping).

(3) Handling when multiple parts reference the same global element

When the part that appears in the input message or output message is coded several times in WSDL, the part is handled as the same part only when the part name is the same and the global element being referenced is the same.

If either the part name or the global element being referenced is different, the part is handled as a different part.

(4) Precautions for mapping to the parameters

(5) Precautions for mapping to the return values

If there is only 1 part of out in the output message, the part is mapped to the return value of the method. If there are 2 or more parts of out, the parts are mapped to the return value.