views:

31

answers:

1

I have a WCF Client (console app) that calls a WCF web service and I'm trying to get the raw XML response from within my Console Application.

Does anyone have an idea or code snippet on how to do this?

+1  A: 

You could use a client Message Inspector

Check out this link

In your BeforeSendRequest you can simply call ToString() on the message.

Dog Ears
Thanks that worked perfectly!
Kevin Jensen