Notes when referring and using external schema from XML schema, are as follows:
- When schemaLocation attribute of xsd:import element of XML schema defined under wsdl:types element of WSDL is not specified, namespace must be resolved by using the XML schema under wsdl:types element.
- Specify schemaLocation attribute of xsd:import element of XML schema without fail.
- Specify namespace attribute in xsd:import element without fail.
- In xsd:import element and xsd:includ element, call reference and set hierarchy to less than 20 hierarchy.
- In schemaLocation attribute, do not specify schema (redefine having 2 or more hierarchies) in schema having redefine element.
- Do not include schema for which targetNamespace attribute is not specified, rom the schema for which targetNamespace attribute of xsd:schema element is specified.
- When using SOAP1.1 mode, you can set value percent encoded with UTF-8 as well as value not percent encoded, in schemaLocation attribute of xsd:import element and schemaLocation attribute of xsd:include element. However, when percent encoding is done and directory is included in file path, do not encode the directory delimiter (/).
- When using SOAP1.1/1.2 combined mode, specify value percent encoded with UTF-8, in schemaLocation attribute of xsd:import element and schemaLocation attribute of xsd:include element. However, when value is percent encoded and directory is included in file path, do not encode the directory delimiter (/).
- Use a forward slash (/) as a directory delimiter in the schemaLocation attribute. (You cannot use \).
- Use "/" in directory delimiter of schemaLocation attribute (you cannot use "\").
- Do not use following characters in the file path of XML schema.
";", "?", ":", "@", "&", "=", "+", "$", ", ", "<", ">", "#", "%", """, "{", "}", "|", "^", "[", "]", "`".
- Notes when specifying schemaLocation attribute are as follows:
- User character prescribed in RFC2396 and character that fulfills xsd:anyURI. However, you cannot use RFC2732 (IPv6).
- When you want to specify schemaLocation attribute with absolute URI, use enter of the http, https, and file protocol.
Example of specifying schemaLocation attribute is as follows:
- (Example1) Specify XML schema in local with relative path
- ./example/sample.xsd
- (Example 2) Specify XML schema in local with absolute path of URL format
- file:///C:/example/sample.xsd
- (Example 3) Specify XML schema in remote, with URL
- http://example.com/sample.xsd