• Post Reply Bookmark Topic Watch Topic
  • New Topic

WSIT enum type question

Cozy Smith
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
from the following, for enum mapping, in java, it codes as {MA, NH}, but when it maps to schema, the sequence changes, it shows <xs:enumeration value="NH" /> before <xs:enumeration value="MA" />

my question, is this mapping from java to schema valid? thanks!

//-- Java code fragment
public enum USState {MA, NH}
//-- Schema fragment
<xs:simpleType name="usState">
<xs:restriction base="xs:string">
<xs:enumeration value="NH" />
<xs:enumeration value="MA" />
// .NET auto generated code from schema
public enum usState { NH, MA }
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!