sorting the web service functions

C

Caspy

I have about 50 functions in my ASP.NET web service function. When open the
web service (the service1.asmx file) in internet explorer, these functions
are listed in no order. It's very inconvenient to search and test a specific
function. How to let these function listed in alphabetical order by name? is
there any way to contro lthe list order?

Thanks,

--Caspy
 
M

Michel Meyer

A file called DefaultWsdlHelpGenerator.aspx in directory
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\CONFIG is used to display the
WebMethod list

Just change this line of code at line 1285

Hashtable methodsTable = new Hashtable();
with
SortedList methodsTable = new SortedList();

You also can copy this file and put it in your site. In the Web.Config file
add following entry where href is the path to your custom
DefaultWsdlHelpGenerator.aspx file where you can also change the look and
feel:

<configuration>
<system.web>
<webServices>
<wsdlHelpGenerator
href="wsdlHelpGenerator/DefaultWsdlHelpGenerator.aspx"/>
</webServices>
....

Regards
Michel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top