Geeks With Blogs

News Awarded Microsoft MVP C#.NET - 2007, 2008 and 2009


I am born in Bangladesh and currently live in Melbourne, Australia. I am a Microsoft Certified Application Developer MCAD Chartered Member (C# .Net)and born in Bangladesh.
I am founder and Chief Executive Officer of
Simplexhub, a highly experienced software development company based in Melbourne Australia and Dhaka, Bangladesh. Co-founder and core developer of Pageflakes www.pageflakes.com.
Simplexhub, is on its mission to build a smart virtual community in Bangladesh and recently launched beta realestatebazaar.com.bd an ASP.NET MVC application written in C#.NET.


Some of My Articles
Flexible and Plugin based .Net Application..
Mass Emailing Functionality with C#, .NET 2.0, and Microsoft® SQL Server 2005 Service Broker'
Write your own Code Generator or Template Engine in .NET

Shahed Khan blog

wsdlHelpGenerator makes it very easy to write our Own Help page for the ASP.NET Web service application. Sometimes you might not like the autogenerated Help page and want to add your own company logo and put your own descriptive help page. The following piece of tweak of your web.config will do the trick.

<configuration>
   <system.web>
      <webServices>
         <wsdlHelpGenerator href="docs/HelpPage.aspx"/>
      </webServices>
   </system.web>
</configuration>


 
If you want to use Attributes to give some description to your WebService and WebMethods,
You can do this:




    [WebService(Description = "Your Web service desctiption!!")]
    public class HelloWorldService : System.Web.Services.WebService
    {

        [WebMethod(Description="Your Method description!!") ]
        public string HelloWorld()
        {
            return "Hello World";
        }
    }

 
Again sometimes you might not want to expose any documentation at all, 
the following piece of tweak of your web.config again will do the trick.

<webServices>
<protocols>
<remove name="Documentation"/>
</protocols>
</webServices>

 
Posted on Wednesday, January 9, 2008 2:23 PM | Back to top


Comments on this post: ASP.NET Web Service Tips: Documentation

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Shahed Khan | Powered by: GeeksWithBlogs.net | Join free