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">
<complexContent>
<extension base="documented">
<choice>
<group ref="one-way-operation"/>
<group ref="request-response-operation"/>
</choice>
<attribute name="name" type="AnyName" use="required"/>
</extension>
</complexContent>
</complexType>
<group name="one-way-operation">
<sequence>
<element ref="input"/>
</sequence>
</group>
<group name="request-response-operation">
<sequence>
<element ref="input"/>
<element ref="output"/>
<element ref="fault" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</group>
..
..here is part of XML..
<portType name="MyService">
<operation name="MyMethodName">
<input message="input"/>
<output message="output"/>
</operation>
</portType> 

How I understand, default value for choise is "one-way-operation"
When I change the plases line 1: and 2:
<choice>
1: <group ref="one-way-operation"/>
2: <group ref="request-response-operation"/>
</choice>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:21 GMT