Web Services Explorer "Errors were encountered while validating XML schemas"

  • 7021578
  • 13-May-2011
  • 11-Mar-2018

Environment

Verastream Host Integrator version 7.1 or higher

Situation

  • You have deployed your model to the Verastream Host Integrator (VHI) session server.
  • You test the web service, by either clicking the Test button in Design Tool (after model deployment), or clicking a Test link in the web services list.
  • When Web Services Explorer is opened (a client to test the embedded web service), the Status may display errors similar to the following example:

IWAB0380E Errors were encountered while validating XML schemas.
XSD: The location 'http://hostname:9680/vhi-ws/sessionormodel/ModelName/ws-addr-wsdl.xsd' has not been resolved because the import is unused
XSD: The base type 'http://www.w3.org/2001/XMLSchema#QName' must be complex to support complex content
XSD: The base type must be the content type
XSD: The base type 'http://www.w3.org/2001/XMLSchema#QName' must be complex to support complex content
XSD: The base type must be the content type
XSD: The enumeration facet is not permitted in a type based on 'http://www.w3.org/2001/XMLSchema#string'
XSD: The enumeration facet is not permitted in a type based on 'http://www.w3.org/2001/XMLSchema#string'
XSD: The enumeration facet is not permitted in a type based on 'http://www.w3.org/2001/XMLSchema#string'
XSD: The base type 'http://www.w3.org/2006/05/addressing/wsdl#AnonymousType' must be complex to support complex content
XSD: The base type must be the content type
IWAB0381I http://hostname:9680/vhi-ws/sessionormodel/ModelName?wsdl was successfully opened.

Resolution

These XSD warnings listed above are harmless and can be ignored. The last message indicates the WSDL was successfully opened.

Though harmless, if you wish to suppress these warnings, see KB 7021336.

Beginning in version 7.5 SP1, this issue no longer occurs with a default server configuration.

Cause

VHI Web Services Explorer uses the Eclipse XSD parser to parse the <xsd:schema>...</xsd:schema> elements defined in the WSDL. As described at http://dev.eclipse.org/newslists/news.eclipse.webtools/msg03365.html, the XSD parser can parse only one <xsd:schema/> element at a time. Verastream Host Integrator web services WSDLs contain multiple <xsd:schema/> elements which reference each other.

The XSD parser is called multiple times to parse each <xsd:schema/> element independently, without the ability to retain information about the other <xsd:schema/> elements, thus producing the XSD warning messages.

Web Services Explorer is designed to report the underlying warnings and does not attempt to filter out “false positives,” so as not to unintentionally suppress any legitimate error messages.

Additional Information

Legacy KB ID

This article was originally published as Attachamate Technical Note 10118.