WCF: Schema Validation
WCF and WF
1
Posts
1
Posters
0
Views
1
Watching
-
Here's the setup - I have an XSD which i use xsd.exe to generate classes from. Although this works fine, it does not include some of the validation that is contained in the XSD (eg, minlength/maxLength etc). Now I have a WCF service which takes as a parameter one of the classes generated in the above step, and im trying to find a way of validating the incoming request for validity using the XSD. I have a whole buch of code based on this: http://msdn.microsoft.com/en-us/library/aa717047.aspx[^] - the problem being that even if I pass a badly formatted object (eg, no value where the XSD says it's required) i still dont get any validation exceptions. Does anybody have any pointers for me? Anyone done anything similar?