hello
I want to return more than 1 values from my web method. For this I am
planing to create a class which will have number of properties, will
set properties and return object of that class in my web method. But
question is how the web service user will get access of that class?
Should I define that class in web service itself? any other method? for
example
public class MyService
{
[webMethod]
public Classb myMethod()
{
Classb objClassb = new Classb();
objClassb.Prop1 = "test";
objClassb.Prop2 = "test1";
objClassb.Prop3 = "test2";
return objClassb;
}
}
where should I define "Classb" class?
thanks