You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Kevin Krouse <kk...@bea.com> on 2004/11/01 22:57:10 UTC
RE: Problem with enumeration based on QNAME
Unfortunately, only types derived from xs:string will have the public
static final enum constants. You can get an array of valid enumeration
values for the "faultcodeEnum" type from the
FaultcodeEnum.type.getEnumerationValues() method.
Hope that helps,
--k
________________________________
From: Zetterman, Erik [mailto:Erik.Zetterman@sogeti.se]
Sent: Friday, October 29, 2004 7:02 AM
To: user@xmlbeans.apache.org
Subject: Problem with enumeration based on QNAME
Hi
I have a problem with an enumeration based on QName. I get no constant
values in the generated class.
compiling this type (from soap 1.2)
<xs:simpleType name="faultcodeEnum">
<xs:restriction base="xs:QName">
<xs:enumeration value="tns:DataEncodingUnknown"/>
<xs:enumeration value="tns:MustUnderstand"/>
<xs:enumeration value="tns:Receiver"/>
<xs:enumeration value="tns:Sender"/>
<xs:enumeration value="tns:VersionMismatch"/>
</xs:restriction>
</xs:simpleType>
I would expect the class FaultcodeEnum to contain 5 constants of type
QName. Unfortunately there are none.
Can anyone explain why and help me with this?
Thanks, Erik.
For the complete schema, see http://www.w3.org/2003/05/soap-envelope
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org