Creating a Sample ATL Server Application XML

Visual Studio .NET provides you with two templates: ATL Server Projects and ATL Server Web Service. You can use these templates to create ATL Server Web applications and ATL Server Web services, respectively. In this section, you will learn to create an ATL Server application in Visual Studio .NET. To do this, perform the following steps:

  1. Launch Visual Studio .NET from the Programs menu.
  2. To create a new project, choose File, New, Project. The New Project dialog box is displayed.
  3. In the Project Types pane, select the Visual C++ Projects option.
  4. In the Templates pane, select the ATL Server Project option.
  5. In the Name text box, specify the name of the project as SampleATLApplication.
  6. In the Location text box, browse for the location where you want to store the ATL Server project. The New Project dialog box for the ATL Server application is shown in Figure.
  7. The New Project Dialog Box for the ATL Server Application

    The New Project Dialog Box for the ATL Server Application

  8. Click on the OK button.

When you click on the OK button, Visual Studio .NET launches the ATL Server Project Wizard (see Figure). This wizard provides an easy and efficient method for creating Web applications or XML Web Service projects that use the ATL Server.

The ATL Server Project Wizard

The ATL Server Project Wizard

As you can see, the first screen in the ATL Server Project Wizard is the Overview screen. This screen provides an overview of the current settings of the ATL Server project. Visual Studio .NET allows you to exit the wizard if you do not want to make changes to the current project settings. However, if required, you can change the current settings by using the other screens of the ATL Server Project Wizard. You will learn about these screens in the following sections.

When you click on the Finish button to complete the wizard, Visual Studio .NET by default creates an ATL Server application project, SampleATLApplication, and an ISAPI extension DLL, SampleATLApplicationIsapi. These projects are added to the Solution Explorer window, as shown in Figure.

The Solution Explorer Window

The Solution Explorer Window

As you can see, these projects include several files. Some of these files are discussed in Tables

Files in the ATL Serve Project

Files in the ATL Serve Project

Files in the ISAPI Extension DLL

Files in the ISAPI Extension DLLFiles in the ISAPI Extension DLL

Similar to the ATL Server project, the ISAPI extension DLLs also contain several files, as explained in Table.

After you have created the ATL Server project and the ISAPI extension DLL by using the ATL Server Project Wizard, you can add code to the SampleATLApplication.h and SampleATLApplication.srf files to implement the functionality that the application provides. You will learn to add code to the project files in "Creating a Web Service Using the ATL Server Library."

We will now discuss the screens of the ATL Server Project Wizard.

Project Settings

The Project Settings screen allows you to select the types of projects that you need to include in your ATL Server project. To select a type of project to be included, you need to select the corresponding check box. By default, the Web application and ISAPI extension DLLs are included in the project, as shown in Figure.

The Project Settings Screen

The Project Settings Screen

In addition to specifying the project types, you can specify a name and location for the project types. Finally, you can specify the virtual directory where you want to host the ATL Server project.

Server Options

The Server Options screen allows you to specify the additional server options that the ISAPI extension DLL supports. You can use these options to implement caching for the ATL Server project. The options in the Server Options screen are displayed in Figure.

The Server Options Screen

The Server Options Screen

As discussed earlier, you can access the Windows 2000 Performance Monitor and store session state information for an ATL Server application. To do this, you need to select the respective options in the Server Options screen.

Application Options

The Application Options screen allows you to select the options that the Web Application DLL supports. By default, the Validation Support and Stencil Processing Support options are selected. The Validation Support option enables the application to perform validations in application forms. The Stencil Processing Support option creates simple tags for your application. These options are displayed in Figure.

The Application Options Screen

The Application Options Screen

As you can see in Figure, the Application Options screen allows you to create the ATL Server project as a Web service.

Developer Support Options

The Developer Support Options screen allows you to specify the options that will help you in working with the ATL Server project. For example, you can add ToDo comments in the code. These comments help you by marking all the pending activities in your code. The Developer Support Options screen is shown in Figure.

The Developer Support Options Screen

The Developer Support Options Screen



Face Book Twitter Google Plus Instagram Youtube Linkedin Myspace Pinterest Soundcloud Wikipedia

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

XML Topics