Taking a Quick Look at a Web Service s Support Files

Taking a Quick Look at a Web Service’s Support Files

Behind the scenes, the .NET environment makes use of several support files that Visual Studio .NET automatically generates each time you create a web service. To view a listing of the various files within Visual Studio .NET, you can use the Solution Explorer, as shown in Figure 12.1.

click to expand
Figure 12.1: Using the Visual Studio .NET Solution Explorer to display a web service’s support files

To display the support files within Visual Studio .NET, perform these steps:

  1. Select the View menu Solution Explorer option. Visual Studio .NET will display the Solution Explorer window.

  2. Within the Solution Explorer window, click the View All Files button.

Table 12.1 briefly describes the purpose of each support file. If you double-click a specific file’s entry, Visual Studio .NET will open the file’s contents for editing. Figure 12.2, for example, shows the contents of the AssemblyInfo.vb file, the contents of which this book will discuss next.

Table 12.1:  Support Files Created by Visual Studio .NET for the Web Services You Create



AssemblyInfo.vb (or .cs)

Contains entries programmers can use to customize the assembly, which is the file the .NET environment uses to package programs or web services.

Global.asax, Global.asax.vb (or .cs), Global.asax.resx

Contains program statements developers can customize to specify the processing the web service performs each time the server starts or terminates the service, or when a client program makes a request of the service.

Service1.asmx, Service1.asmx.vb (or .cs), Service1.asmx.resx

Contains the program source code that implements the web service, and information about the resources the service requires.


Contains XML-based entries a developer can use to customize application settings, such as authentication and authorization policies, debug operations, support for tracing, or application- and session-object settings.


Specifies the web service’s URL. If you move the web service, you must edit the file’s contents to change the URL.


Contains XML-based entries that developers can use to control the processing that other programs can perform to discover information about the web service.

. NET Web Services Solutions
.NET Web Services Solutions
ISBN: 0782141722
EAN: 2147483647
Year: 2005
Pages: 161
Authors: Kris Jamsa

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net