referenced xsds and choice type

Oct 28, 2010 at 11:15 PM


How can I generate classes for referenced xsds?

basically I have scenario like this

xsds A, B, C, 1, 2, 3

A has references 1,2

B has references 1,2,3

C has 1,3 

When I generate class I want to have total 6 classes with references? is it possible?

normally by using xsd.exe, first I have to flatten these A,B, C root xsd. then I can make 3 classes

but when I create an asmx file using these, I get error because of multiple property definitions while properties in 1,2,3

will be in A, B , C 2 or 3 times. So I have to distinguish them into another shared class. 

secondly, do you have any solution for choice type, normally I just replace it with sequence and then it works. 

thanks for answer,