Is there a way that I can define a WebMethod with a parameter that is a fixed
length string? I'm using VB.Net 2005 and would like to define a webmethod
that will prevent the caller from passing a string that exceeds a certain
fixed length. For this application if the string parameter exceeds the
specified length it will always be an error, so I would like to put that rule
explicitly in the contract rather than raise the error once I get the bad
data.
I would like to do this w/o editing the wsdl by hand.
Thanks in advance for any help.
length string? I'm using VB.Net 2005 and would like to define a webmethod
that will prevent the caller from passing a string that exceeds a certain
fixed length. For this application if the string parameter exceeds the
specified length it will always be an error, so I would like to put that rule
explicitly in the contract rather than raise the error once I get the bad
data.
I would like to do this w/o editing the wsdl by hand.
Thanks in advance for any help.
Comment