I have a web service, which has a reference to a class. I want to be able to
accept this class as a parameter to my web service method. When the consumer
consumes the web service, proxy class is created. This proxy has my class
but for some reason it does not generate methods, only properties.
Here is my code....
****Class*****
[Serializable]
public class Class1
{
string str;
public Class1()
{
//
// TODO: Add constructor logic here
//
}
public void Test(int a)
{
}
public string IntReturn(int b)
{
return str;
}
public string PropTest
{
set { str = value; }
get { return str; }
}
}
*****WebService*****
[WebMethod]
public void Obj(ClassLibrary1.Class1 cls)
{
cls.Test(5);
}
****webservice proxy******
[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://tempuri.org/")]
public class Class1 {
/// <remarks/>
public string PropTest;
}
As you can see above, proxy generates only property and not methods. Does
any one have any idea why that is?
Thanks,
Alex.