Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using WCF in .NET how can I make it auto generate SOAP docs like ASMX did?

I'm currently writing a web service using WCF in VB.NET.

Previous web services I wrote used ASMX but I wanted to learn WCF and so far it's going well. I actually prefer the way WCF does things.

One thing I miss however is the way that ASMX used to generate example SOAP requests and responses. It was like getting documentation for free.

Is there anyway to auto generate SOAP documentation for WCF?

If not, is there any way to generate it in a .NET page using the WSDL?

like image 470
Hades Avatar asked Jun 07 '10 07:06

Hades


1 Answers

I guess this isn't supported by WCF in the same way it was for ASMX because WCF supports multiple endpoint types, not just SOAP web services (e.g. Net TCP, named pipes, etc).

SoapUI is a good little tool that can auto-generate SOAP messages from WSDL. Or you could create a small test client app, enable WCF tracing, and use the Service Trace Viewer Tool to view the messages that were sent.

like image 133
Graham Clark Avatar answered Sep 30 '22 12:09

Graham Clark