Search This Blog

Thursday, January 2, 2014

Enable Help In WCF Service

Help will provide the all the input and output parameter information of service method. to enable help in WCF service add following code into web.config.
<endpointBehaviors>
        <behavior name="WebHttpBehavior">
          <webHttp automaticFormatSelectionEnabled="false" defaultOutgoingResponseFormat="Json"
                   defaultBodyStyle="Bare" helpEnabled="true"/>
        </behavior>
      </endpointBehaviors>
After address put "/" then help for information about the method. for example http://localhost:51013/TestService/Service.svc/help

No comments:

Post a Comment