XML, Web Services, and. NET Frameworks (2)

Source: Internet
Author: User
Tags format object error handling extend net object model version valid
The. NET Framework |web|web Services |xml cable-level Xml:soap

The key to implementing the heterogeneous infrastructure of Web services and implementing Web services throughout the Web is to implement technologies that support simple data description formats. This format is XML. Web services must use XML to accomplish three things: basic cabling format, service description, and "Service discovery."

SOAP: At the lowest level of communication, the system needs to use the same language. In particular, applications as both sides of the communication need to adhere to the same set of communication rules: how to represent different data types (for example, integers or arrays), and how to represent commands (that is, what you need to do with the data). In addition, the application needs to extend the language appropriately when necessary. Simple Object Access Protocol (SOAP) is an implementation tool for XML, which provides a set of common rules that describe how to represent and extend data and commands.

Web Service Description Language (WSDL). After the two applications have obtained the rules on how to represent data types and commands, they need to be given a valid description of the specific data and commands they receive. It is not enough to just say that an integer has been received; for example, after receiving two integers, the application must explicitly state that it can perform multiplication operations on both integers. Web Services Description Language (WSDL) is an XML syntax that developers and development tools can use to represent the specific functionality of a Web service.

SOAP discovery: At the highest level, there is a set of rules on how to locate service descriptions: By default, where can a user or tool find a function description of a service? Depending on the set of rules provided in the SOAP discovery specification, the user or development tool can automatically find the SCL description for the service.

Once the three functional tiers are implemented, the developer can easily find the Web service, take it as an object and then integrate it into the application, then build a rich functional infrastructure. In this way, the resulting application can communicate with the Web service in reverse.

. NET Framework: Web Service engine

Clearly, many basic structures need to be transparent to developers and users of these processes. NET Framework provides this basic structure. From the. NET Framework perspective, all components can be Web services, and Web services are only one component. As a matter of fact. NET Framework extracts the essence of the Microsoft Component Object Model (COM), combining them organically with the essence of loosely coupled computing, generating powerful and efficient Web Component systems: Simplifying the programmer's "plumbing" operations, deeply integrating security, and introducing an internet-based operating system, Greatly improve the reliability and scalability of your applications.

. NET Framework contains three main parts: Common language runtime, unified class library collection with multiple hierarchies, and advanced version of "Active Server Page" (also known as asp+)

Common Language runtime

This name does not accurately reflect all of its functionality. In fact, the common language runtime plays a very important role in the process of component development and the running of software. During the operation of a component, the runtime is responsible for managing memory allocations, starting or canceling threads and processes, enforcing security policies, and meeting the requirements of the current component for other components. During the development phase, the runtime's role has changed: the runtime is significantly more automated than today's COM (for example, it automates memory management), so the developer's work becomes very easy. In particular, the mapping feature will cause a sharp drop in code writing, which is what developers need to do to program the business logic into reusable components.

The concept of runtime is not novel to a programming language: Virtually every programming language has its own runtime. The visual Basic? development system has the most obvious run-time (named VBRun), Visual C + +, like visual FoxPro, Jscript, SmallTalk, Perl, Python, and Java, There is a run-time msvcrt. NET Framework is that it provides a unified programming environment across programming languages, which is the root cause of its unique role.

Unified Programming Class

. NET Framework provides developers with a unified, object-oriented, hierarchical, and extensible Class Library set (API). Today, C + + developers are using the Microsoft Foundation Class Library, where Java developers use the Windows Basic Class Library, and the Visual Basic API set used by Visual Basic users. Nutshell. NET Framework unifies Microsoft's current various frameworks. In this way, developers no longer need to learn multiple frameworks to be able to program smoothly. Much more than that, by creating a common set of APIs across programming languages. NET Framework enables cross language inheritance, error handling, and debugging. In fact, all programming languages from JScript to C + + are mutually equal, and developers are free to choose the ideal programming language.

Advanced version of the Active Server page (asp+)

Asp+ is used. NET Framework, which provides a Web application model that consists of a set of controls and a basic structure. With it, the construction of Web applications becomes very easy. Developers can directly use the asp+ control set, which encapsulates a common set of widgets for the Hypertext Identification Language (HTML) user interface (such as text boxes, Drop-down menus, and so on). In fact, these controls run on the Web server, which converts the user interface into HTML format before sending it to the browser. On the server, the control is responsible for presenting the Object-oriented programming model to Web developers, which provides the rich functionality of object-oriented programming technology. Asp+ also provides basic infrastructure services, such as session state management and process loops, that further reduce the amount of code that developers want to write and increase the reliability of their applications significantly. The asp+ also allows developers to transfer software as a service. By using the Asp+ Web Services feature, asp+ developers need only simple business logic programming, and the asp+ infrastructure is responsible for delivering services through SOAP.

Although asp+ has not yet been officially released, it has created an incredible miracle of improving application functionality: The performance of existing ASP based application performance has been optimized by three times times, and more exciting is the rise in productivity.

. The core elements of the NET Framework

. NET Framework has several elements worth mentioning. The first is its security system and configuration system. The two systems work together to effectively deter the possibility of running unsafe code and drastically reduce the challenges that the so-called DLL Hell faces when configuring applications.


The security system is a highly granular, factual system that gives developers and administrators a variety of code processing rights (not just "on" or "off"). In the future, you will also decide how to implement these permissions based on the core elements of the code itself.

For example, when a. NET Framework application is downloaded to a system, it requests a set of permissions, such as write access to the temporary directory. The runtime collects factual information about the application, such as where it was downloaded, whether it was used with a valid signature, or even how accurate it is to access the system, and determines whether the application is allowed to run by administrative policy. The runtime can even tell the application that it cannot authorize all permissions requested and allow the application to decide whether to continue running.

With this security system, many application configuration problems can be solved. One of the biggest challenges for developers and administrators (and ultimately users) is versioning issues. If everything is in a paralyzed state after you have installed an application, and the system has been running very well before, the biggest possibility is that the newly installed application rewrites some shared libraries and most likely fixes the program errors that are being used by existing applications. This happens so frequently that people call it a "DLL Hell."

. NET Framework has several advanced features that can completely eliminate the "DLL Hell" phenomenon. First, it has a very powerful internal naming system that can effectively prevent two of libraries from being wrongly named for each other. In addition, it provides a new feature called "Parallel" configuration. If the newly installed application in the precedent does rewrite the shared library, the existing application can fix the library. When an existing application starts again, it checks all shared files. If a file is found to be changed and the changes are incompatible, it can request the runtime to extract a version that it can use. Thanks to a powerful security system, the runtime can safely perform this operation, so the application completes its own repair work.

Conclusion

People always like to get tired of publishing clichés such as "the Internet has changed everything." Similarly, when talking about the impact of the Internet on human beings, it is always tempting to use advertising hyperbole to express the admiration of the Internet. However, the Internet does radically change the way applications are developed and configured. The transfer of software into a service has yet to be a common effort, XML is an important means to achieve this dream. NET Framework is a core component of the Microsoft Developer strategy, designed to help developers easily build, configure, and run Web services.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.