Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Sample Analysis of VB.NET Web Service

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the example analysis of VB.NET Web service, which is very detailed and has certain reference value. Friends who are interested must finish it!

Web-oriented support in addition to the new Windows Forms engine,. NET also includes a forms engine specifically designed for constructing Web forms, called Web Forms. The goal of this engine is to make it as easy for users to create Web forms as they would for traditional Windows desktop applications. Web Forms is an ASP.NET technology through which we can use familiar RAD (rapid program development) tools to construct forms with executing code. However, the ASP.NET code in the form runs on the server side in a compiled way, and after processing, the resulting HTML is sent to a browser that supports HTML 3.2.

Client event data is intercepted by the underlying framework and sent to the server. This means that the application interface is no longer constrained by browser types, means that there are a large number of UI tools available, and that users can make full use of their existing form-making skills. If the application does not need to be browser-neutral, then it can take advantage of the various features of the IE browser. With Web Forms, we will be able to more easily build better and richer user interfaces for applications with Web capabilities.

Another important Web-oriented feature in VB.NET is Web services. In the promotion of Microsoft, Web services are praised as one of the important reasons for adopting .NET technology. In fact, Web services are basically COM-like objects published through Web servers and standard protocols. Of course, VB.NET Web services are not strictly COM objects, but they work in a similar way. Microsoft expects all kinds of companies to provide services in the form of Web services, and looks forward to simply "gluing" services when creating applications in the future, just as it is today to build new applications through VBA with the help of Office and applications that support VBA.

From a demonstration of Microsoft PDC (Professional Developers Conference, Professional developer Conference), we can see how Microsoft wants developers to glue together various Web services.

In this demonstration, a hypothetical doctor publishes his schedule in the form of a Web service, demonstrating how to make an appointment with a doctor on a smartphone through Web. VB.NET also allows you to query the server and extract metadata for all services supported by the server. Web services portray Microsoft's ambitious strategy, but only time will tell whether Microsoft has been successful in promoting VB.NET Web services on a large scale. In any case, the idea itself seems to have a bright future.

In order to reduce the problems related to encapsulating and distributing applications, such as the daunting DLL Hell problem (between applications that share DLL, one application cannot function properly due to the upgrade of another application), Microsoft has made a variety of efforts, and it also brings good hope. All .NET applications are encapsulated as Assembly. Assemblies contain metadata that describes various operational requirements. This kind of metadata is called manifest, which includes: the identification information of the assembly (name, version, etc.), listing all file dependencies as well as the file location and file version of the file list, external dependency information (with data that describes the assembly must be used, but the developer does not have their own DLL and other resources). Assemblies are self-describing through manifest, so .NET applications do not need to modify the registry to run. In other words,. NET applications no longer require components to be registered. In the best case, it is already available on the client's machine.

NET operating environment, deploying a complex application is as simple as copying a folder to the target machine. Another advantage of using assemblies is that different applications can have different versions of the same DLL, all of which run on the same machine without interference. If it succeeds as expected, both DLL Hell and the terrible version problems will be a thing of the past.

VB.NET represents a major leap forward for VB. Still, it may be the right mindset to think of VB.NET as a new language with familiar syntax rather than a simple upgrade to the old one.

The above is all the content of the article "sample Analysis of VB.NET Web Services". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report