Accessing serialized xml in client proxy
I have a question that hopefully someone in the forum will be able to answer:
I have a web method that returns an entity (lets say an Address entity for example)
The address entity has the following properties:
Address1
Address2
Address3
Address4
Address5
Postcode (AKA Zip)
My client consumes the service, calls the web method via the client proxy and makes use of the returned Address object.
I have 2 consumers of this service. The first, as mentioned above makes use of the Address entity. The second however will make some modifications to the object, and then pass the object on to another service. My question is this:
Is it possible to receive / intercept the xml of the serialized Address object (perhaps via the use of a second method in the client proxy) before the Address object is de-serialized? This would allow for the xml to be passed on to another service for example and cut out the de-serialization â re-serialisation process?
Any thoughts gratefully received.
|