In the managed realm, server-side applications are implemented through the runtime host. Unmanaged applications host the common language runtime, which enables your custom managed code to control the behavior of the server. This model provides you with all the features of the common language runtime and class library while obtaining the performance and scalability of the primary server.
Figure 1.1 below shows the basic network architecture for running managed code in different server environments. Servers (such as IIS and SQL Server) can perform standard operations when application logic executes through managed code.
Figure 1.1 Server-side managed code
asp.net is a hosting environment that enables developers to develop web-based applications using the. NET Framework. However, ASP.net is more than just a runtime host; it is the complete structure of the objects that are developed and distributed over the Internet using managed code. Both Web Forms and XML Web Services use IIS and asp.net as the publishing mechanism for the application, and both have a collection of support classes in the. NET Framework.
As an important development of web-based technology, XML Web Services is a distributed server-side application component similar to common Web sites. Unlike web-based applications, however, the XML Web Services component does not have a UI and does not target browsers such as Internet Explorer and Netscape Navigator. XML Web services consists of reusable software components designed to be used by other applications, and other applications include traditional client applications, web-based applications, and even other XML Web services. As a result, XML Web Services technology is rapidly pushing application development and deployment to a highly distributed Internet environment.
If you have used an earlier version of ASP technology, you will soon notice the improvements that ASP.net and Web forms provide. For example, you can develop WEB forms pages in any language that supports the. NET Framework. In addition, your code no longer needs to share the same file with HTTP text (although the code can continue to do so if you prefer). Web Forms pages are executed in native languages because, like all other managed applications, they take full advantage of the runtime. In contrast, unmanaged ASP pages are always scripted and interpreted. asp.net pages are faster, more practical, and easier to develop than unmanaged ASP pages, because they interact with the runtime like all managed applications.
The. NET Framework also provides a collection of classes and tools to help develop and use XML Web Services applications. XML Web services are built on the basis of SOAP (a remote Procedure call protocol), XML (an extensible data format), and WSDL (Web Service Description Language). The purpose of building the. NET Framework based on these standards is to improve interoperability with non-Microsoft solutions.
For example, the. NET Framework SDK contains a Web Service Description Language tool that can query XML Web services published on the web, analyze its WSDL description, and produce C # or Visual Basic source code that your application can use Code and become a client of XML Web Services. These source codes can create classes that derive from classes in the class library that use SOAP and XML parsing to process all of the underlying traffic. Although you can use the class library to directly use the XML Web Services,web Service Description Language tool and other tools included in the SDK, you can make it easier to develop with the. NET Framework.
If you develop and publish your own XML Web services,.net Framework, you are provided with a set of classes that conform to all basic communication standards, such as SOAP, WSDL, and XML. Using these classes allows you to focus on the logic of the service without paying attention to the communication infrastructure needed for distributed software development.
Finally, like Web Forms pages in a managed environment, your XML Web Services will use the scalable communication of IIS to run at the native language speed.