Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get raw XML in WCF Client from Web Service call

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?

like image 815
Kevin Jensen Avatar asked Sep 07 '10 15:09

Kevin Jensen


1 Answers

You could use a client Message Inspector

Check out this link

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

like image 119
Dog Ears Avatar answered Nov 03 '22 13:11

Dog Ears