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? I get error message shown below when going to that page in
Internet
Explorer on the same machine as the service. If I understand correctly; to
correct this error I simply need to have the following in web.config:
<webServices>
<protocols>
<remove name="Documentation" />
</protocols>
<wsdlHelpGeneratorhref="helpPage.aspx"/>
</webServices>
Thus it seems like, in this example, all I need to do is have a web page
named helpPage.aspx. Is this true? Could the wsdlHelpGeneratorhref be a
simple .htm page?
Here is the error I referred to above:
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.WebServiceHandlerFac tory.CoreGetHandler(Type
type, HttpContext context, HttpRequest request, HttpResponse response) +491033
System.Web.Services.Protocols.WebServiceHandlerFac tory.GetHandler(HttpContext
context, String verb, String url, String filePath) +104
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
+175
System.Web.MapHandlerExecutionStep.System.Web.Http Application.IExecutionStep.Execute() +120
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +155
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
Thank you.
--
Thank you. 8 3481
Hello KTJ,
Thank you for posting in the MSDN newsgroup.
As for the "[InvalidOperationException: Request format is unrecognized.]"
error you mentioned, it is due to the "Documentation" protocol is disabled
so that when we request the asmx url in webbrowser, the ASP.NET runtime
will report such error.
Actually, after we remove the "Documentation" protocol as below:
===================
<webServices>
<protocols>
<remove name="Documentation" />
</protocols>
===============
Neither the built-in helper page nor our custom helper page(configure
through the <wsdlHelpGenerator href="CustomWSDLPage.aspx"/element) can be
visisted through webbrowser.
Therefore, if you want to use custom WSDL or documentation page, you need
to remove the following configuration element from your application's
web.config file.
<remove name="Documentation" />
In addition, the custom WSDLhelper page doesn't support pure html file, you
need to create an ASPX page as the custom WSDL helper page.
If there is anything else unclear, please feel free to post here.
Regards,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
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.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Hello Steven,
Thank you. So if I understand correctly; all I need to do to hide the
functions and display another page is to use the wsdlHelpGeneratorhref tag in
the WebServices section; as shown below? Is this correct?
<webServices>
<wsdlHelpGeneratorhref="helpPage.aspx"/>
</webServices>
--
Thank you.
"Steven Cheng[MSFT]" wrote:
Hello KTJ,
Thank you for posting in the MSDN newsgroup.
As for the "[InvalidOperationException: Request format is unrecognized.]"
error you mentioned, it is due to the "Documentation" protocol is disabled
so that when we request the asmx url in webbrowser, the ASP.NET runtime
will report such error.
Actually, after we remove the "Documentation" protocol as below:
===================
<webServices>
<protocols>
<remove name="Documentation" />
</protocols>
===============
Neither the built-in helper page nor our custom helper page(configure
through the <wsdlHelpGenerator href="CustomWSDLPage.aspx"/element) can be
visisted through webbrowser.
Therefore, if you want to use custom WSDL or documentation page, you need
to remove the following configuration element from your application's
web.config file.
<remove name="Documentation" />
In addition, the custom WSDLhelper page doesn't support pure html file, you
need to create an ASPX page as the custom WSDL helper page.
If there is anything else unclear, please feel free to post here.
Regards,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
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.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Hello KTJ,
Thanks for your response.
Yes, you're right. You should remove those protocol disabling
cofiguration(as below) if you want to allow the client user visit
webservice description page(built-in or our custom one) in web browser
====================
<webServices>
<protocols>
<remove name="Documentation" />
</protocols>
=====================
Actually, this is true for any other protocols(such as HttpGet, HttpPost,
HttpSoap). Whenever you disable (by using the <remove name=xxxelement) in
web.config, the webservice clients no longer be able to communicate with
the service through that disabled protocol: http://msdn2.microsoft.com/en-us/library/ccbk8w5h.aspx
If you still have any questions or any other things we can help, please
feel free to let me know.
Regards,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
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.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Thank you. However, I am still confused. Would the configuration below both
hide the function names/declarations and automatically route the user to the
helpPage.aspx file?
<webServices>
<protocols>
<remove name="Documentation" />
</protocols>
<wsdlHelpGeneratorhref="helpPage.aspx"/>
</webServices>
--
Thank you.
"Steven Cheng[MSFT]" wrote:
Hello KTJ,
Thanks for your response.
Yes, you're right. You should remove those protocol disabling
cofiguration(as below) if you want to allow the client user visit
webservice description page(built-in or our custom one) in web browser
====================
<webServices>
<protocols>
<remove name="Documentation" />
</protocols>
=====================
Actually, this is true for any other protocols(such as HttpGet, HttpPost,
HttpSoap). Whenever you disable (by using the <remove name=xxxelement) in
web.config, the webservice clients no longer be able to communicate with
the service through that disabled protocol:
http://msdn2.microsoft.com/en-us/library/ccbk8w5h.aspx
If you still have any questions or any other things we can help, please
feel free to let me know.
Regards,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
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.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Thanks for your reply KTJ,
The <remove name="Documentation" /element means you will disable the
"documentation" functionality of the ASP.NET webservice(asmx). In other
word, this will prevent the user from being able to see the function
names/declarations or your custom Documentation page(your helpPage.aspx).
Therefore, if you want to redirect the client user to your custom
helpPage.aspx page, you can not include
<remove name="Documentation" />
And your complete webservices configuration section should look like:
==================
<webServices>
<wsdlHelpGeneratorhref="helpPage.aspx"/>
</webServices>
===================
Hope this help clarify it. Please feel free to let me know if you still
have anything unclear.
Regards,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
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.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Hello KTJ,
How are you dong on this thread, have you got any further ideas on this or
does my last reply helps clarify this further? If there is still anything
unclear, please feel free to let me know.
Regards,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
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.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Hello Steven,
There is a minor bug in the line:
<wsdlHelpGeneratorhref="helpPage.aspx"/>
there should be a space between wsdlHelpGenerator and href
thus, I found out it should be:
<wsdlHelpGenerator href="helpPage.aspx"/>
It works. I am all set. Thank you.
--
Thank you.
"Steven Cheng[MSFT]" wrote:
Hello KTJ,
How are you dong on this thread, have you got any further ideas on this or
does my last reply helps clarify this further? If there is still anything
unclear, please feel free to let me know.
Regards,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
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.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Thanks for your followup KTJ,
Yes, it's my type mistake in the original posted <wsdlHelpGenerator ... >
element, also thank you for pointing it out. I'm glad that you've got it
working.
If you have meet any new problems later, please feel free to post here.
Have a good day!
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Lorenzo Villari |
last post by:
I premise I don't know C++ well but... I wondered what is this data hiding
thing... I mean, if I can look at the header (and i need it beacuse of the
class), then what's hidden?
Can someone give...
|
by: bob |
last post by:
Hi,
I know there exists a good reason why the designers of c++ decided that
function hiding should exist. But I don't know why. Can anybody provide
a good reason/example of a case where function...
|
by: Urs Beeli |
last post by:
I have a question regarding errno. If I understand it correctly,
including <errno.h> allows me to check "errno" for error values
that some standard library functions may set.
This brings up some...
|
by: sofeng |
last post by:
I'm not sure if "data hiding" is the correct term, but I'm trying to
emulate this object-oriented technique. I know C++ probably provides
much more than my example, but I'd just like some feedback...
|
by: subramanian100in |
last post by:
Is my following understanding correct ?
Data abstraction means providing the interface - that is, the set of
functions that can be called by the user of a class.
Information hiding means...
|
by: developer.new |
last post by:
Hi
I have a question regarding this concept I learned about recently:
Name Hiding. Here's what I've come across:
There is a base class with two functions with the same name but
different...
|
by: mattia |
last post by:
Hi everybody, I'm wondering how to realize a simple pattern in C:
information hiding, to hide detail implementations of a data structure.
How can I do that? I've also read that is preferred to use...
|
by: Sh4wn |
last post by:
Hi,
first, python is one of my fav languages, and i'll definitely keep
developing with it. But, there's 1 one thing what I -really- miss:
data hiding. I know member vars are private when you...
|
by: Bryan Parkoff |
last post by:
I write my large project in C++ source code. My C++ source code
contains approximate four thousand small functions. Most of them are
inline. I define variables and functions in the global scope....
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: Mushico |
last post by:
How to calculate date of retirement from date of birth
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: nia12 |
last post by:
Hi there,
I am very new to Access so apologies if any of this is obvious/not clear.
I am creating a data collection tool for health care employees to complete. It consists of a number of...
| |