Serializing classes from Web Services

R

Russ

I have a situation where I need to serialize a few classes (that are
read from a C++ web service) to ViewState or to Session. When I try
to do this I get an error that the class is not Serializable. Clearly
it is, because it has to be serialized to XML in order to be passed
from the Web Service. But it seems that the ViewState serialization
is a different animal.

I've solved the problem in the past by creating a new class in the
aspnet web client (C#) that duplicates the class but is tagged as
[Serializable]. Then I have to have code to transfer the data from
the input class to the serializable one before I can save it.

This is a horrible waste of code, processing power, Client and user
memory, and programing time! Isn't there a better way to do this?

Thanks, Russ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top