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 / September 2004

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alfred B. Thordarson - 28 Sep 2004 20:00 GMT
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,

-Alfred
Alfred B. Thordarson - 29 Sep 2004 12:22 GMT
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.

-Alfred

Rate this thread:







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.