S
Steve James
Is there a way to use a regular expression to validate a string in an
object/soap message passed to a web service without performing a full
schema validation? What I would like to do is something like:
public class WebServiceRequest
{
private string _aString;
[RegexValidation( Pattern="<Regular Expression goes here>")]
public string AString
{
get{ return _aString; }
set{ _aString = value; }
}
}
Does such an attribute or other construct exist which causes the
property to be validated against a regular expression by the web
service infrastructure automatically when the soap request is
deserialized?
Steve
object/soap message passed to a web service without performing a full
schema validation? What I would like to do is something like:
public class WebServiceRequest
{
private string _aString;
[RegexValidation( Pattern="<Regular Expression goes here>")]
public string AString
{
get{ return _aString; }
set{ _aString = value; }
}
}
Does such an attribute or other construct exist which causes the
property to be validated against a regular expression by the web
service infrastructure automatically when the soap request is
deserialized?
Steve