Let me ask this a different way.
What is the best practice for using the same object definitions on the client and service side? My objects happen to be trivial to serialize, but are composite objects (eg. Foo.title, Foo.text, Foo.issueNumber ; members are just strings and ints and such).
The way I am doing it now is that I have a third project that has class definitions in it; both client and server side have references...
User Profile
Collapse
-
Thanks, but your tutorial doesn't seem to have anything to do with what I asked.Leave a comment:
-
problem with classes: client v. web service
My application sometimes wants to process objects it gets from a web service, but sometimes wants to process purely local objects. In either case, the objects implement the same protocol. For example, both locally created and ws created objects have a "title" property that I want to read.
I would like to have a shared definition of this common protocol, and I would like to call the same method names on both kinds of...
No activity results to display
Show More
Leave a comment: