Repeat default asmx color scheme

When you create a web service using .NET 2.0 (or 3.5), it creates a .asmx file for you. When this .asmx is displayed in a web browser, it is displayed with a dark blue border at the top and the name of the web service, for example: web service screenshot

Can I redo this page? I need to change the blue color according to the colors of the client. It seems to me pointless, but what the client wants: - |

+4
source share
2 answers

As mentioned in the blog post provided by Justin, you can restore the Wsdl help page by changing the DefaultWsdlHelpGenerator.aspx page, which can be found in C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ CONFIG \

However, more can be done, but the blog only mentions changing this file and changing it where it can be found in the machine.config file. This restriction applies to all web services hosted on the server.

You can create a custom help page for individual web services.

To do this, you need to add a copy of the file mentioned above to the web service project, and then link this new file to the web.config file.

The configuration section to be added is shown below:

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

Go to asmx in the browser and you will see the specified help page, not the default.

+3
source

Good news is possible. Check out this blog post for full details.

Stephen Tuub: ASP.NET Web Services Test Page

+3
source

All Articles