0

I have an ASMX web service that exposes several objects. I have a real instance of that object, and I would like to instantiate a stub object that is populated from it. Clearly there is such functionality already, because when the web service returns a value it is creating the stub and populating it. I just need to do the same thing manually.

Ideas?

Jason Coyne
  • 6,509
  • 8
  • 40
  • 70
  • I answered a similar question at the following link: [The following link](http://stackoverflow.com/questions/1408687/asmx-object-proxy-object-conversion/1408875#1408875) – Michael Mann Sep 11 '09 at 03:48

1 Answers1

0

You said

the web service returns a value it is creating the stub and populating it

This is not true. The web service uses the XML Serializer to serialize the object into a SOAP message, then sends it to the client. At the client side, the SOAP is deserialized back into an object, though this time, it's a proxy object.

John Saunders
  • 160,644
  • 26
  • 247
  • 397