views:

114

answers:

1

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?

+1  A: 

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.

Graham Clark
What I'm looking for is something that can auto-generate the docs on the fly so that if I add new methods to my API they are documented automatically and some sapd examples given.. are there any .net libraries that do this?
Hades