views:

25

answers:

0

Hello and thanks for any assistance.

I have a WCF project that contains a Customer class object. Currently, I use svcutil to generate the WSDL and XSD's that I give to the client.

When the XSD's are generated they are pretty simple.

For some of the fields I want to add Min and Max Length Attributes, so that the XSD has the

<xs:minLength value="1"/> and <xs:maxLength value="10"/>

Question: Is there anyway to do this programatically? IE Add an Attribute to the specific field in the Customer Class? Or do I need to manually go into the XSD and add these attributes?

Any help, suggestions or guidance would be greatly appreciated.

Thanks, Steven.