lonf Posted June 19, 2003 Posted June 19, 2003 Hi, heres what i'm trying todo: I've got a webserivce that returns an object model (i'll call it object A). On the client side (PDA) i want to be able to keep this object model and serialize it to disk (and call other methods on it that aren't in the returned model). So what i thought i'd do is create object B that inherits from object A. So when the webservice returns object A it can be placed into object B, and i can serialize it and call extra methods on it.. This doesn't work.. tried ctype's and all sorts.. So i tried having a local reference to object A on the client and tried putting the returned Object from the webservice into it.. but that doesn't work (as they are different types, ones the webservice proxy and the others the actual object).. So i tried keeping the object that gets returned from the webservice and serializing that.. But that doesn't work because the autogen code for the ws proxy isn't serailizable... Any ideas?? i'm sure this must be possible.. rgds chris Quote
Administrators PlausiblyDamp Posted June 19, 2003 Administrators Posted June 19, 2003 Not sure if you can inherit a class returned from a webservice (never tried). You will probably nee to look at using the ISurrogateSelector interface to get round this problem http://msdn.microsoft.com/msdnmag/issues/02/09/net/toc.asp?frame=true has an article on this. Hope there is an easier solution as this does look quite tricky Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.