I have created n-tier application (of type Webservice).
Now i want to include the checks on my all classes's properties in WSDL file.
For example: employee is one of that classes and employee name is one of the required property on which we have made a check that if it contains more than 40 charachters then it should raise a custom exception.
if (value.Length > 30)
event_logger.Error("Street Name of Address must be less than 20 characters long.");
throw new CrackerJackException(new CrackerJackException().GetCompleteException(ErrorCode.InvalidDataField));
Please help and suggest.
View Complete Post