Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / April 2006

Tip: Looking for answers? Try searching our database.

How to disable/modify the default test pages for asmx web services?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Maxwell2006 - 30 Mar 2006 17:13 GMT
Hi,

When I run a web service project, ASP.NET shows me a default web method
invoke page.

How can I disable/modify the default test (or method invoke) page of the
ASP.NET web services?

Thank you,

Max
Steven Cheng[MSFT] - 31 Mar 2006 07:04 GMT
Hi Max,

Welcome to the MSDN newsgroup.

As for the ASP.NET webservice's default test/invoke page, it is used for us
to call the webservice through http get/post method which is very simple.
If you do not want to expose these interfaces, you can use the following
configuration element to disable them(assume that you're using asp.net 2.0):

=========================
<webServices>
    <protocols >
        <remove name="HttpGet"/>
        <remove name="HttpPost"/>
        <remove name="HttpPostLocalhost"/>

</protocols>
=====================

Also, we can also replace the default webservice description helper page
with ourown page through the below element:

#<wsdlHelpGenerator> Element  
http://msdn2.microsoft.com/en-us/library/ycx1yf7k(VS.80).aspx

In addition ,here is a msdn article describe the common configuration
options for ASP.NET  webservice:

#Configuration Options for XML Web Services Created Using ASP.NET
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconConfigurationOptionsForASPNETWebServices.asp

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Maxwell2006 - 31 Mar 2006 14:02 GMT
This is precisely what I was looking for.

Thanks a lot

> Hi Max,
>
[quoted text clipped - 50 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Steven Cheng[MSFT] - 03 Apr 2006 02:39 GMT
You're welcome Max,

Have  a nice day!

Regards,

Steven Cheng
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.