RSS

Enable WCF Web Service Help Page in Web.Config

18 Apr

In .Net 4.0 of WCF, we can now enable service’s help page that look like this:

To do that, add the following xml tag in web.config file:

<endpointBehaviors>
    <behavior name="DefaultEndPointBehavior">
        <webHttp helpEnabled="true" />
    </behavior>
</endpointBehaviors>

The attribute (helpEnabled=”true”) in <webHttp> tag enables the help page and it’s case-sensitive.

To access the help page, just goto your service end point url and add “/help”, for example:

http://localhost/HelloWorld.svc/help
Advertisements
 
1 Comment

Posted by on April 18, 2011 in General

 

Tags: , ,

One response to “Enable WCF Web Service Help Page in Web.Config

  1. Pierre

    March 13, 2016 at 11:45 pm

    Also note: This is available only for webHttpBinding.
    Source: https://msdn.microsoft.com/en-us/library/ee230442(v=vs.110).aspx

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: