uCosminexus Application Server, Web Service Development Guide

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

15.1.9 Mapping the service and port to the service class

This subsection describes the mapping of the WSDL service (name attribute of the wsdl:service element) and port (name attribute of the wsdl:port element) to the service class.

Organization of this subsection
(1) Mapping
(2) Conditions for the service name and port name

(1) Mapping

The WSDL service and port and the service class are mapped in accordance with the JAX-WS 2.2 specifications. The following figure shows an example of mapping:

Figure 15-12 Example of mapping the service and port to the service class

[Figure]

The WSDL service and port are also mapped to the skeleton class. The following figure shows an example of mapping:

Figure 15-13 Example of mapping the service and port to the skeleton class

[Figure]

(2) Conditions for the service name and port name

In the service name and port 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-18 Conditions for strings that can be coded in the service name and port name

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_service
Hitachi_port
The operation might not function properly (error message is not displayed).
2 Strings that do not begin with numeric characters 1User_service
1User_port
An error message is output in the standard error output and log and the processing ends (KDJW51029-E).