uCosminexus Application Server, Web Service Development Guide
Specify a catalog file by using the -catalog option of the cjwsimport command to use the catalog functionality when developing a stub based Web Services client. For details on the -catalog option, see 14.1(2) List of options.
According to the mapping information of a catalog file, the cjwsimport command maps the WSDL specified in an argument and the namespace or the location of an XML schema that this WSDL references, to a different WSDL or XML schema location. The cjwsimport command also scans the WSDL and XML schema in the mapped location and generates a Java code.
Table 27-1 lists mapping targets of the catalog functionality in the cjwsimport command and Table 27-2 lists mapping targets in the code generated by a WSDL specified in the arguments of the cjwsimport command.
Table 27-1 Mapping targets in the cjwsimport command
| No. | Mapping target | Supported |
|---|---|---|
| 1 | Location of the WSDL specified in the arguments of the cjwsimport command | N |
Table 27-2 Mapping targets in the code generated by a WSDL specified in the arguments of the cjwsimport command
| No. | Element | Attribute | Support |
|---|---|---|---|
| 1 | wsdl:import | namespace | N |
| 2 | location | Y | |
| 3 | xsd:import | namespace | Y# |
| 4 | schemaLocation | Y | |
| 5 | xsd:include | schemaLocation | Y |
Do not change the values of the following locations and elements when using the catalog functionality when developing a Web Services client.
Use the -wsdllocation option of the cjwsimport command to change the values of the aforementioned locations or elements. For details, see 14.1 cjwsimport command.
The following figure shows an example of mapping an XML schema location that a WSDL refers by using the catalog functionality when developing a Web Services client.
Figure 27-1 Example of mapping an XML schema location that a WSDL refers
In this figure, a remote XML schema location is specified in the schemaLocation attribute of the xsd:include element of the WSDL. The figure also shows procedures when the catalog functionality is disabled and enabled.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.