Is it possible to create strongly typed Web Services?

F

Fran Garcia

Hi,

I am developing both a Web Service and a client application. It works Ok,
but I would like the proxy generator to deserialize objects using the
original class, and not the proxy-created class. Is it possible?

How?

Thanks in advance,

Fran
 
J

Javier G. Lozano

Not really since you're exchanging the schema of the web service rather
than the types. In other words, you're exchanging the representation
of the data in a platform agnostic way (this is how you can interop
with Java, Linux, etc.).
 
F

Fran Garcia

Yes, I know, but I mean a way to instruct wsdl.exe to reference some
assemblies and, if a serialized object is from the referenced assembly, use
that class instead of creating a new one.

This way, if you are both the server and the client developer, you can add
methods to server classes and reuse them in your client applications, as
long as they reference the original assembly.

How do Datasets manage to get deserialized as Datasets instead of a wsdl.exe
created proxy class?

I suppose it must have something to do with the assembly being in the GAC,
or some Xml related attribute or interface, but I can't find it.

Any clues?

Thanks a lot
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top