I need to access the raw response XML from a .NET generated SOAP client (using svcutil
). I believe that I can do this by intercepting it with a custom behaviour, but I don't really need the deserialized objects at all (and would rather not take the performance hit of creating them). Is there a way I can bypass the default serialization and access the raw response XML directly?
How can I get the raw XML response from a .NET generated SOAP client rather than serialized objects?
Asked
Active
Viewed 867 times
5

Matthew Murdoch
- 30,874
- 30
- 96
- 127

Brad Allan
- 51
- 1
-
Perhaps you should look at implementing `IClientMessageFormatter`. In `DeserializeReply` method, you get SOAP object and you need to convert it into return value etc. Your implementation may create dummy objects or may throw an exception! Also, you will not get raw XML but a message object. – VinayC May 11 '11 at 12:23