Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > <wsdlHelpGenerator> causing problems with web-service references !?!

Thread Tools

<wsdlHelpGenerator> causing problems with web-service references !?!

Alfred B. Thordarson
Posts: n/a
I have then been using Visual Studio to auto-create web service
references to my .asmx files. But all my Reference.cs files are
referring to the same .asmx file after I add the <wsdlHelpGenerator>
to my web.config file.

I have been using the <wsdlHelpGenerator href="..."/> in my web.config
file to create my own custom test page for my .asmx web services. This
seems to be working well for all the four .asmx files that are in my
web application.

But the problem is that in my Windows Application, where I have been
using Visual Studio to auto-create web service references to these
..asmx files, all of them are now referring to the same .asmx file !?!

What happens is that, for some reason, no matter which of these four
..asmx files I try to create a reference to, a reference is always
created to the same .asmx file !?!

If I remove the <wsdlHelpGenerator> from the web.config then it works
again. And all the references are created to the different .asmx files
but not all to the same one?

I have searched the web but can't find a reason or solution, hope
someone out there has had this problem, and has solved it

Looking forward to hearing from you,

Reply With Quote
Alfred B. Thordarson
Posts: n/a
I figured this out.

The only think not mentioned "anywhere" regarding changing the default
WSDL Help Page Generator, is that it can't simply produce any html.
The HTML page produced by your custom WSDL Help Page Generator must
contain the following line, in the header:

<link rel="alternate" type="text/xml" href="Basics.asmx?disco">

.... and I had accidentally copied this line from the original
DefaultWsdlHelpGenerator.aspx, and it had the 'href' tag fixed. This
meant that all my .asmx files produced HTML that linked to the same
disco file

Hope this helps someone else.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Snake references just as ok as Monty Python jokes/references in python community? :) Python 8 12-12-2006 11:21 PM
Typedef A references struct B which references struct A which... DanielEKFA C++ 8 05-16-2005 10:26 AM
Difference between bin and obj directories and difference between project references and dll references jakk ASP .Net 4 03-22-2005 09:23 PM
how to understand references to variables and references to constants are distinguished? C++ 3 11-10-2004 04:16 AM
Pointers and References (and References to Pointers) Roger Leigh C++ 8 11-17-2003 10:14 AM