Use the. NET Framework to provide existing code as a Web service
Source: Internet
Author: User
Use the. NET Framework to provide existing code as a Web service
Use. NET to create distributed applications
Steve Kirk and Priya Dhawan
Microsoft Developer Network
Abstract: This article describes how to use ASP. NET to convert the existing Microsoft Visual Basic 6.0 code to the data provided by the Web service. Applicable to Microsoft. net sdk and Microsoft Visual Studio. NET Beta 1.
Directory
Introduction
Data types provided by existing code
ADO 2x Command object
ADO 2x Recordset object
Stream object
XMLDOM object
XML string
Summary
Introduction
The. NET framework simplifies the task of using. NET code as a Web service .. The ASP. NET Web service and ASP. NET Web service client in the NET Framework Developer Guide are described in English. One of the reasons for this simplification is that the. NET Framework provides a series of rules for converting complex. NET data types into XML (serialization) and reverse conversion (deserialization ).
The existing code of classes written before. NET transmits data through language-specific data types or COM objects. Therefore, these data types cannot be serialized into XML based on the same standard rules. This article describes how to convert the existing Microsoft & reg; Visual Basic 6.0 code to the data required for ASP. NET Web services.
When evaluating whether the existing code is suitable for providing Web services, the data conversion problem discussed in this article is not the only one that needs to be considered. Other factors to be considered include the object and state model, the returned data size, how to indicate success, how to return error information, and the security model (including access control, identity authentication and encryption) execution Model (synchronous or asynchronous), how to distribute code, and transaction Model (COM + transaction or declarative transaction. These issues will be discussed in the forthcoming architecture topic (English.
Data types provided by existing code
This article only describes some of the most common data types and XML (as a string ), because if you use XML to extend existing code, XML can cover almost all other data types. This article discusses the following data type conversion methods:
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.