Click here to Skip to main content
15,887,214 members
Articles / Web Development / ASP.NET
Tip/Trick

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

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
15 Jan 2011CPOL 61.5K   1   3
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.

XML
<webServices>
     <protocols>
       <add name="HttpGet"/>
       <add name="HttpPost"/>
     </protocols>
</webServices>


Please rollback these settings after testing/debugging your deployed web services on live server.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect FE
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionNothing Happended Pin
Junell Zenarosa13-Aug-13 20:14
professionalJunell Zenarosa13-Aug-13 20:14 
Generalrollback these settings Pin
lunky17-Jan-11 7:50
lunky17-Jan-11 7:50 
GeneralRe: rollback these settings Pin
QuipmentN17-Jan-11 20:06
QuipmentN17-Jan-11 20:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.