uCosminexus Application Server, Web Service Development Guide

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

26.3 Format of the wsdl:import element

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:

Organization of this section
(1) namespace attribute (wsdl:import element)
(2) location attribute (wsdl:import element)

(1) namespace attribute (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.

(2) location attribute (wsdl:import element)

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

#1
When you specify the WSDL file using the relative path or absolute path, specify the correct path. If the path is wrong and the WSDL file is not found, an error message is output in the standard error output and log and the processing ends (KDJW51197-E or KDJW51198-E).

#2
You cannot specify an absolute path string beginning with a drive such as "C:/~". If such a string is specified, an error message will be output in the standard error output and log and the processing will end (KDJW51199-E).

#3
When you specify a remote WSDL file using a URL, specify the correct URL. If the path is wrong and the WSDL file is not found, an error message will be output in the standard error output and log and the processing will end (KDJW51197-E or KDJW51198-E).