W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2001

XML Schema vallidate

From: Alex_Mazurok <amazurok@yahoo.com>
Date: Fri, 22 Jun 2001 10:57:54 -0400 (EDT)
Message-ID: <001101c0fb2a$a33ff5d0$0c00a8c0@saga.sagasoftware.com>
To: <xmlschema-dev@w3.org>
Hello all!
I have a problem - hope anybody could help me
When I validate xml file using .xsd by Oracle xdk_java_9_0_1_0_0 I got folloving message:
(Error) Element 'output' not expected. 
..this is a part of .xsd ..
<complexType name="operationType">
<extension base="documented">
<group ref="one-way-operation"/>
<group ref="request-response-operation"/>
<attribute name="name" type="AnyName" use="required"/>
<group name="one-way-operation">
<element ref="input"/>
<group name="request-response-operation">
<element ref="input"/>
<element ref="output"/>
<element ref="fault" minOccurs="0" maxOccurs="unbounded"/>
..here is part of XML..
<portType name="MyService">
<operation name="MyMethodName">
<input message="input"/>
<output message="output"/>

How I understand, default value for choise is "one-way-operation"
When I change the plases line 1: and 2:
1: <group ref="one-way-operation"/>
2: <group ref="request-response-operation"/>
parser get me correct result.
In documenatation I not found descrition, how evidently set the choice...
Where is my mistake (how can I set value of choise by "request-response-operation" or parser not work correct (I think it is my error) :-( 

It is beforehand grateful
Received on Friday, 22 June 2001 15:04:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:51 UTC