R
Robert Millman
A have a few questions related to how parameters and return types are serialized/deserialized across WebService calls. Here is my scenario
A web method takes two strings as parameters and returns an instance of a custom object of type "WebService.MyClass". The proxy object that is generated in VS.Net contains the signature of the Web Method call, and also contains a "shell" definition for my custom class. However, the name space for this shell is now "ClientApp.Alias.MyClass"
A couple of questions
1) In my client code, I make the web method call and receive the returned value. However, I do not have the full class definition and cannot access methods, etc. on it, as the proxy object only contains a shell outlining the public variables. How do I cast the returned object from type "ClientApp.Alias.MyClass" to WebService.MyClass? Also realize that the "ClientApp.Alias" namespace will vary from project to project, depending on naming conventions, etc
2) How do get private members of my custom class to participate in the serialization so that I receive a full functioning instance of my class
Thank
Robert Millman
A web method takes two strings as parameters and returns an instance of a custom object of type "WebService.MyClass". The proxy object that is generated in VS.Net contains the signature of the Web Method call, and also contains a "shell" definition for my custom class. However, the name space for this shell is now "ClientApp.Alias.MyClass"
A couple of questions
1) In my client code, I make the web method call and receive the returned value. However, I do not have the full class definition and cannot access methods, etc. on it, as the proxy object only contains a shell outlining the public variables. How do I cast the returned object from type "ClientApp.Alias.MyClass" to WebService.MyClass? Also realize that the "ClientApp.Alias" namespace will vary from project to project, depending on naming conventions, etc
2) How do get private members of my custom class to participate in the serialization so that I receive a full functioning instance of my class
Thank
Robert Millman