Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

Cozy Smith

Greenhorn
+ Follow
since Aug 27, 2013
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Cozy Smith

can anyone share what is difference between WS-I compliance and conformance? thanks!
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" />
</xs:restriction>
</xs:simpleType>
// .NET auto generated code from schema
public enum usState { NH, MA }