Enable WCF Web Service Help Page in Web.Config

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 thought on “Enable WCF Web Service Help Page in Web.Config”

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