2
Answers

wcf object error

Daniel  M

Daniel M

14y
2.2k
1
Hi,

When I have a class that has an object variabel where other types is in. When I send a web-request to the server and gets the variable, it works fine when the data is set to known-types. The problem is when I want to use the data in the object returned. I can not typecast it and gets an error when trying to getType() of the object.

How can I make it it's own type of the content? I know the type because of other variables in the class so I just have to make it of this type but how? I have thought about making a xml-parser of these object to the given class; but do not know if this is possible at all and nessesary at all?

Answers (2)