WSDL Validation doen't work with nested namespaces and it's objects - suspect for bug
Posted: Wed Oct 26, 2011 2:33 pm
Hello,
I experienced issue when using Oxygen 11.2 XML editor to define web service definitions.
Following WSDL has use namespace xmlns:do="http://xmlns.lesycr.cz/DO/ObjednavkovySystem/V1" which is then imported from external XSD, but when using the element from this external namespace using do:VytvoreniRezervaceListDM, Oxygen says the document is valid even if the used VytvoreniRezervaceListDM is not defined within the do namespace.
Maybe better some sample from my code.
So the WSDL definitions:
Following is my XSD definition from the imported XSD file:
So there is no definition of VytvoreniRezervaceListDM within XSD file, instead there is VytvoreniRezervaceDM. Of course, this is my fault, but for Oxygen XML Editor all of these files are valid. I also tried to configure custom validation scenario, but still the documents seems to be OK. Well, we are talking only about one document, the WSDL file, it doesn't matter what's defined in XSD, but what's used in WSDL.
I want to ask if this is the standard behavior of Oxygen, or schould be reported as bug.
Best regards,
Ladislav
I experienced issue when using Oxygen 11.2 XML editor to define web service definitions.
Following WSDL has use namespace xmlns:do="http://xmlns.lesycr.cz/DO/ObjednavkovySystem/V1" which is then imported from external XSD, but when using the element from this external namespace using do:VytvoreniRezervaceListDM, Oxygen says the document is valid even if the used VytvoreniRezervaceListDM is not defined within the do namespace.
Maybe better some sample from my code.
So the WSDL definitions:
Code: Select all
<definitions
targetNamespace="http://xmlns.lesycr.cz/BS/ObjednavkovySystem/V1"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:bs="http://xmlns.lesycr.cz/BS/ObjednavkovySystem/V1"
xmlns:do="http://xmlns.lesycr.cz/DO/ObjednavkovySystem/V1"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<types>
<xsd:schema>
<xsd:import namespace="http://xmlns.lesycr.cz/DO/ObjednavkovySystem/V1"
schemaLocation="../../../../DataObjects/D201Portal/ObjednavkovySystem/V1/VytvoreniRezervaceDM.xsd"/>
</xsd:schema>
</types>
<message name="VytvoreniRezervaceListReqMsg">
<part name="VytvoreniRezervaceListDM" element="[b]do:VytvoreniRezervaceListDM[/b]"/>
</message>
<message name="VytvoreniRezervaceListRespMsg">
<part name="Result" element="core:Result"/>
</message>
Code: Select all
<xsd:complexType name="VytvoreniRezervaceDMType">
<xsd:complexContent>
<xsd:extension base="core:DMType">
<xsd:sequence>
<xsd:element name="Data" type="VytvoreniRezervaceDataType"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
[b]<xsd:element name="VytvoreniRezervaceDM"[/b] type="VytvoreniRezervaceDMType"/>
I want to ask if this is the standard behavior of Oxygen, or schould be reported as bug.
Best regards,
Ladislav