Advertise with us
Control Panel
Forum
Hosting Help
ASP.NET 4.5 & SQL 2012 Hosting
Resources
Notice
Login
Members
Shared Hosting
|
Upgrade
|
Advertise
|
Tutorials
|
Home
»
Resources
»
Enable test page (Invoke button) on remote webservice
ASP.NET
ADO.NET
Web Services
Remoting
Visual Studio 2005
Error Bank
Interview Questions
Tips & Tricks
XML
HTML
Jscript/Javascript
IIS
Windows
General
Submit Resource or code snippet
... and get
surprise gifts
Win Digital camera, ASP.NET Books, Free softwares!!
Enable test page (Invoke button) on remote webservice
13 Feb, 2008
Author:
petera
Summary
Use Invoke button even when not on local box
.NET Classes used :
None (web.config settings only)
Enable test page (Invoke button) on remote webservice
=====================================================
Background
When you are developing an ASP.NET webservice, and you navigate to the service.asmx page on your local box, a list of links is shown for the supported operations. Clicking one of the links normally brings up the test page for the operation, with an Invoke button. However, once the webservice is deployed anywhere other than the local box, the test page is no longer available.
Making test page available remotely
To enable remote use of the test page, simply enable the HttpGet/HttpPost protocol in the <webservices> section of your web.config. This is disabled by default to increase security in a production environment, but for debugging purposes you can enable it as follows in your web.config:
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
Feedbacks about this page from members:
great support
-
bruse
it sounds good worth trying
(14 Feb 2008)
To es bik tik trobol
-
Gilberto Gonçalves de Oliveira Júnior
To es bik tik trobol
(15 Feb 2008)
Submit Feedback
View All Feedbacks
Total
members
:
250669
Average new registrations per day (in last 7 days):
7
New Registration:
Open
Register Now
Talk to Webmaster
Tony John
Facebook
Google+
Twitter
Advertise
Privacy Policy
Terms of use
Contact Us
SpiderWorks Technologies Pvt Ltd.
All Rights Reserved.