To write documentation for users of your WebService you have to take a different approach. The reason is that the default comments is not visible to the user of the WebService. You will have to write a little bit of html code to get it visible.
Add the following to the top of your WebService:
[WebService(Namespace="http://www.foo.com", Description="Html description of your WebService")]
public class YourWebService : System.Web.Services.WebService {
...
For each function add the following:
[WebMethod(Description="Html description of your function")]
public string YourFunction(){
...
The descriptions will be visible to the user when he browses to your asmx-page. There are also other properties availible for the WebMethod - Take a lock at MSDN.

0 comments:
Post a Comment