D
DalePres
When I pass a class to a web service as a method parameter, or from the web
service as a return value, I get an error to the effect that .Net cannot
implicitly convert from WebService.MyClass to MyLocalNamespace.MyClass
(substitute usable names). I have set references to MyClass on both the
webforms project and on the web services project and the associated DLL
exists in both projects.
Of course, explicitly casting doesn't help so I have, on small projects,
actually created the server object on the local client. That works pretty
well, but that leads to my main question.
I have a web service, myService, which has a reference to MyClass. I
create, on the webform:
myService.MyClass myClass = new myService.MyClass();
Then I set properties:
myClass.Name = "something";
myClass.Number = 234;
etc.
Each time I set or get a property, does it include a roundtrip to the server
for the definition or is the definition of the MyClass object stored locally
when I created it locally?
The other-than-main question is: Does anyone know a better way to do it?
Thanks in advance,
Dale
service as a return value, I get an error to the effect that .Net cannot
implicitly convert from WebService.MyClass to MyLocalNamespace.MyClass
(substitute usable names). I have set references to MyClass on both the
webforms project and on the web services project and the associated DLL
exists in both projects.
Of course, explicitly casting doesn't help so I have, on small projects,
actually created the server object on the local client. That works pretty
well, but that leads to my main question.
I have a web service, myService, which has a reference to MyClass. I
create, on the webform:
myService.MyClass myClass = new myService.MyClass();
Then I set properties:
myClass.Name = "something";
myClass.Number = 234;
etc.
Each time I set or get a property, does it include a roundtrip to the server
for the definition or is the definition of the MyClass object stored locally
when I created it locally?
The other-than-main question is: Does anyone know a better way to do it?
Thanks in advance,
Dale