I have a web service that accepts and returns a custom class. The problem is that the Form that calls the web service method requires instantiation of the webservice.myClass instead of the local copy of the myClass? For example:
**myservice:**
class myclass
{
...
}
class myservice
{
[WebMethod]
public void mymethod(myclass cls)
{
cls.xxx = yyy;
returns cls
}
}
**caller form:**
class myclass
{
...
}
class caller
{
private void call()
{
myservice.myclass cls = new myservice.myclass(); //<-------------------
cls = myservice.mymethod(cls);
}
}
It requires myservice.myclass and I'd like to use local myclass, which is exactly the same. Is this possible?