65.9K
CodeProject is changing. Read more.
Home

How to enable the remote test page(invoke button) for webservice in live environment?

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

Jan 14, 2011

CPOL
viewsIcon

62145

Enabling remote test page(invoke button) for webservice in live environment.

After deploying your web services on live server, if you navigate to service.asmx file, it will display all supported function links, when you click one of these links it will redirect to meta data information page but test page (with invoke button) will not appear. For enabling remote web service test page, just add HttpPost/HttpGet protocol in the webServices section of your web.config. By default, this option is disabled to increase the security in live environment, but you can enable it in web.config as follows for debugging the deployed web services.
<webServices>
     <protocols>
       <add name="HttpGet"/>
       <add name="HttpPost"/>
     </protocols>
</webServices>
Please rollback these settings after testing/debugging your deployed web services on live server.