mo.notono.us

Friday, August 06, 2004

Sorting Methods in ASP.NET Web Service Test Page

I got tired of trying to locate a specific method on my web service test page, so I did a google search and as usual found the same question, but no complete answer. Jan Tielen pointed me to DefaultWsdlHelpGenerator.aspx, which is the file that is used for testing, but after that I was on my own.

Long story short, here's how to solve the problem:

  1. Open the DefaultWsdlHelpGenerator.aspx file - on my computer it is at C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG\DefaultWsdlHelpGenerator.aspx - in your favorite editor. You may want to create a backup first.
  2. Locate the Page_Load event handler. If this file hasn't been edited before (and you're running .NET 1.1) this should start on line 1243
  3. Scroll down to line 1285, which should look like this:
    Hashtable methodsTable = new Hashtable();
  4. Comment out this line and replace it with the following:
    SortedList methodsTable = new SortedList();
  5. Save and refresh your web service test page.
Now why doesn't it come like this in the first place?

4 Comments:

  • THANKS!!
    This had me baffled and annoyed for the last 2 years!

    By Anonymous Anonymous, at Monday, August 23, 2004 11:29:00 AM  

  • Hm, strange that Google did not find this site:
    http://www.xmlwebservices.cc/index_FAQ.htm

    The tip has been there for maybe two years. ANd if you Google for ".net xml web services" you can find the site on the first page on Google.

    Cheers,
    Christian Weyer

    thinktecture
    http://www.thinktecture.com
    In-depth support and consulting for software architects and developers

    *Smells like service spirit-Weblog
    http://weblogs.asp.net/cweyer

    *Independent Microsoft Regional Director
    http://www.microsoft.com/rd

    By Anonymous Anonymous, at Thursday, September 30, 2004 2:15:00 AM  

  • Yeah, figures that someone would have come up with the same solution before. Well, the more coverage of the issue, the better, right?

    By Blogger Oskar Austegard, at Thursday, September 30, 2004 7:27:00 AM  

  • Thanks for the tip.
    It Troubled our for a long time.
    Solved in a minute.

    By Anonymous Anonymous, at Thursday, July 06, 2006 6:17:00 AM  

Post a Comment

<< Home