Reputation: 9411
I have created a simple WCF web service. How can I view it's response as XML?
Do I create a consuming client application and then output the results as XML somehow?
Upvotes: 1
Views: 2064
Reputation: 4969
I rather recommend you to use XMLSpy, as it provides good view of WSDL, SOAP, xsd.
Upvotes: 0
Reputation: 1918
Below are all the things I'd suggest:
Enable tracing on the service side, generate tracing logs, and analyze with SvcTraceViewer. To do this, follow the instructions at this MSDN article on using the service trace viewer.
Turn on debug exceptions. This is done by turning in includeExceptionDetailInFaults, which you can do by following the instructions here.
Use Fiddler to monitor the wire traffic.
Try this, and please report back! :)
Upvotes: 0
Reputation: 140
You can also use the Wcf testing tool provided to you by visual studio. Its pretty straight forward to use.
You can find it in C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\WcfTestClient
Upvotes: 2
Reputation: 440
You may use WCF tracing utility - SvcTraceViewer.exe. Just configure tracer in your config file.
Take a look at this source(at the bottom, system.diagnostics section):
This is how we use WCF tracing in our project.
Upvotes: 1