WSDL Validation doen't work with nested namespaces and it's objects - suspect for bug

Having trouble installing Oxygen? Got a bug to report? Post it all here.
archenroot
Posts: 22
Joined: Wed Oct 26, 2011 2:20 pm

WSDL Validation doen't work with nested namespaces and it's objects - suspect for bug

Post by archenroot »

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:

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>
Following is my XSD definition from the imported XSD file:

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"/>
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
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: WSDL Validation doen't work with nested namespaces and it's objects - suspect for bug

Post by Radu »

Dear Ladislav,

In Oxygen 13 we made some improvements for WSDL validation.
Can you try to download and test an Oxygen 13 kit side by side with your 11.2 installation?
I can provide you with a trial license key if you contact us on the support@oxygenxml.com email address.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
archenroot
Posts: 22
Joined: Wed Oct 26, 2011 2:20 pm

Re: WSDL Validation doen't work with nested namespaces and it's objects - suspect for bug

Post by archenroot »

Hi,

well, it is already working in required way in version 13.

Best regards.

Ladislav :wink:
Post Reply