uCosminexus Application Server, Web Service Development Guide
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.
Figure 15-6 Example of mapping the message part to the parameters and return values (request-response operation)
Figure 15-7 Example of mapping of message parts and parameter (one-way operation)
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
Table 15-11 Relationship between the part types and the mapping to Java source (Non-wrapper style)
| No. | WSDL part types | Mapping to Java | |
|---|---|---|---|
| Mapped to | Mapping method | ||
| 1 | in | Parameter | Not mapped using javax.xml.ws.Holder<T> class. Mapped using classes such as java.lang.String. |
| 2 | inout | Parameter | Mapped using javax.xml.ws.Holder<T> class. |
| 3 | out | Parameter | Mapped using javax.xml.ws.Holder<T> class. |
| 4 | Return value | Not mapped using javax.xml.ws.Holder<T> class. Mapped using classes such as java.lang.String. | |
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). |
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.
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.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.