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 / .NET Framework / XML / July 2006

Tip: Looking for answers? Try searching our database.

How to hide available web service function declares

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John K - 14 Jun 2006 20:39 GMT
How do you hide the available functions (and syntax) that are normally
displayed when you browse to a webservice (e.g. httpx://xxx.com/CMgr.asmx)?

If you go to that page you will see a list of the available functions and
you can click on the function name to reveal the calling syntax.  We need to
remove this documentation for security reasons.  We do not want other people
to access the functions.  We only want precompiled applications that know
what functions are available and the required calling syntax.  

I tried a solution listed in an article at
http://www.15seconds.com/issue/040609.htm, but it did not work.  It involved
adding a tag to the web.config file (<removename="Documentation"/> ).

Thank you.
Rolando - 30 Jun 2006 22:39 GMT
put a space between remove and name

> How do you hide the available functions (and syntax) that are normally
> displayed when you browse to a webservice (e.g. httpx://xxx.com/CMgr.asmx)?
[quoted text clipped - 10 lines]
>
> Thank you.
John K - 01 Jul 2006 01:59 GMT
It seems to work, at least my application still works.  After adding this tag
to hide the documentation; is it normal to see an error message when browsing
to the page.  Here is the error I get when going to that page in Internet
Explorer on the same machine as the service:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.  

Stack Trace:

[InvalidOperationException: Request format is unrecognized.]
 
System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type
type, HttpContext context, HttpRequest request, HttpResponse response) +491033
 
System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext
context, String verb, String url, String filePath) +104
  System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
+175
 
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +155



--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42

Thank you.

> How do you hide the available functions (and syntax) that are normally
> displayed when you browse to a webservice (e.g. httpx://xxx.com/CMgr.asmx)?
[quoted text clipped - 10 lines]
>
> Thank you.
Kevin Yu [MSFT] - 11 Jul 2006 09:03 GMT
Hi John,

There is some mistake on that page, it has to be <remove
name="Documentation" />

Kevin Yu
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.)

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



©2008 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.