Applying XSLT to a WCF Post

We would like to convert outgoing XML from a WCF request if certain conditions are met. Is there a way to intercept the XML stream right before it passes through the wire with WCF? I found an approach in which you use Message objects and override the OnWriteBodyContents method, then you need to create the XML manually, and ideally we need a simpler method.

+6
xml wcf
source share
1 answer

You need to build a message inspector and apply the transformation there:
http://msdn.microsoft.com/en-us/library/aa717047.aspx

+2
source share

All Articles