uCosminexus Application Server, Web Service Development Guide
The following is an example of the format of the wsdl:import element:
<wsdl:import namespace="namespace-name-of-the-WSDL-definition-to-be-imported" location="location-of-the-WSDL-definition-to-be-imported"/> |
The following points describe the attributes of the wsdl:import element:
Specifies the namespace name of the Import target WSDL definition.
In the namespace attribute of the wsdl:import element coded in the import source WSDL definition, specify the same namespace name as the namespace name of the Import target WSDL definition (targetNamespace attribute of the wsdl:definitions element).
The following table describes the relationship between the namespace of the import source WSDL definition and the namespace of the import target WSDL definition:
Table 26-1 Relationship of the namespaces for the WSDL definition (Import source/ import target)
| No. | Import source WSDL definition | Import target WSDL definition | Conditions | Runtime operations |
|---|---|---|---|---|
| 1 | namespace attribute of the wsdl:import element | targetNamespace attribute of the wsdl:definitions element | Matching | Terminates normally. |
| 2 | Not matching | A warning message is output in the standard error output and log and the processing continues (KDJW51191-W). The elements of the import target WSDL definition and import source WSDL definition belong to the respective namespaces. |
||
| 3 | targetNamespace attribute of the wsdl:definitions element | Matching | A warning message is output in the standard error output and log and the processing continues (KDJW51192-W). The elements of the import target WSDL definition and import source WSDL definition belong to the same namespace. | |
| 4 | Not matching | Terminates normally. |
Specifies the location of the WSDL definition to be imported.
The conditions for the strings specified in the location attribute are as follows:
The following table describes an example of coding of the location attribute:
Table 26-2 Example of specification of the location attribute (WSDL import functionality)
| No. | Specified contents | Example of specification |
|---|---|---|
| 1 | Specifying the local WSDL file using the relative path#1 | ./wsdl/input.wsdl |
| 2 | Specifying the local WSDL file using the absolute path expressed with a URL (file://~) #1, 2 | file:///C:/tmp/wsdl/input.wsdl |
| 3 | Specifying the remote WSDL file using a URL (http:~)#3 | http://example.com:8080/fromjava/test?wsdl |
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.