Consultor Eletrônico



Kbase P177193: The WSDL Analyzer fails with "Cannot resolve reference" when a WSDL document contains many external
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/12/2010
Status: Unverified

SYMPTOM(s):

The WSDL Analyzer fails with "Cannot resolve reference" when a WSDL document contains many external XML Schemas

The WSDL Analyzer fails with an error similar to the following when the WSDL document contains several XML Schema 'include' elements inside the same XML Schema section:



Error loading WSDL document mydocument.wsdl : Cannot resolve reference: SomeType{[null]} for construct [null]{[null]} (11748)

FACT(s) (Environment):

OpenEdge 10.2x
All Supported Operating Systems

CAUSE:

Bug# OE00201826

FIX:

As a workaround replace the multiple XML schema '<xs:include>' elements which are located in one XML Schema section by '<xs:import>' elements in separate XML Schema sections. For example, replace the following inside the WSDL Types:
<wsdl:types>
<xs:schema targetNamespace="http://www.myhost.com/mynamespace">
<xs:include schemaLocation="../schema/CommonTypes.xsd"/>
<xs:include schemaLocation="../schema/Preferences.xsd"/>
</xs:schema>
</wsdl:types>


... by:
<wsdl:types>
<xs:schema>
<xs:import namespace="http://www.myhost.com/mynamespace" schemaLocation="../schema_flat/CommonTypes.xsd"/>
</xs:schema>

<xs:schema>
<xs:import namespace="http://www.myhost.com/mynamespace/" schemaLocation="../schema_flat/Preferences.xsd"/>
</xs:schema>
</wsdl:types>