Consultor Eletrônico



Kbase P111028: Getting error (11748) when trying to load a WSDL document that contains an xsd:schema element with n
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   18/11/2005
Status: Unverified

SYMPTOM(s):

Getting error (11748) when trying to load a WSDL document that contains an xsd:schema element with no target namespace defined

Error loading WSDL document <file-name>.wsdl : Invalid QName '<element-name>'. (11748)

Error loading WSDL document (11748)

Error occurs when executing the WSDL Analyzer Utility (bprowsdldoc) against the WSDL document

The same error also happens when trying to connect to the Web Service by specifying the -WSDL parameter within the 4GL's CONNECT Method

The offending XML element within the WSDL document is defined under /wsdl:definition/wsdl:types/xsd:schema

The xsd:schema element in which the offending XML element is defined has no target namespace

CAUSE:

This is an expected behavior. The WSDL document is not valid according to the WS-I.

4.3.2 Schema targetNamespace Structure

Requiring a targetNamespace on all xsd:schema elements that are children of wsdl:types is a good practice, places a minimal burden on authors of WSDL documents, and avoids the cases that are not as clearly defined as they might be.

R2105 All xsd:schema elements contained in a wsdl:types element of a DESCRIPTION MUST have a targetNamespace attribute with a valid and non-null value, UNLESS the xsd:schema element has xsd:import and/or xsd:annotation as its only child element(s).

FIX:

Contact the author of the WSDL Document and ask them to correct it so that it conforms to the WS-I Recommendations. In this case, the correction is to define a targetNamespace attribute for the offending xsd:schema element