Maximum String Length - C# Web Service

C

Chris B.

Given the sample C# class defined below, is there a way (hopefully via an
attribute) to specify the maxium length allowed for the string (myName) so
that it is reflected in the WSDL created when the class is used as a
parameter to a web service method?

namespace Sample
{
[Serializable]
public class MyClass
{
public string myName;
}
}

Thanks,
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top