Inheritance problem - An easy one i hope!

lonf

Newcomer
Joined
May 12, 2003
Messages
7
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
 
Back
Top