T
troyboy
Hi I have created a simple web service using classes to pass data:
[WebMethod(Description = "Test")]
public double test(DataHere data)
{
return 3.5;
}
public class DataHere {
[XmlElement (DataType="int")]
public int myInt;
public double myDouble;
}
My question is how do I attach a schema to this so that I can restrict
myInt to have number from 5 to 10?
In my above example it is very easy to use vs2005 to use the web
service. VS even creates the DataHere class for the client. Can't the
client do some validation using a schema or do I have to validate on
the web service in the test method?
TroyBoy
[WebMethod(Description = "Test")]
public double test(DataHere data)
{
return 3.5;
}
public class DataHere {
[XmlElement (DataType="int")]
public int myInt;
public double myDouble;
}
My question is how do I attach a schema to this so that I can restrict
myInt to have number from 5 to 10?
In my above example it is very easy to use vs2005 to use the web
service. VS even creates the DataHere class for the client. Can't the
client do some validation using a schema or do I have to validate on
the web service in the test method?
TroyBoy