Questions about the downgrading of the C # Web Service in Delphi
First, I think it is necessary. the development of webservice under the. net platform gives a more comprehensive explanation. The initial emergence of web service is in the e-commerce environment, and some problems are not easily solved by traditional means, for example, for business communication and data exchange among applications, it is no longer feasible to use binary mechanisms such as DCom and CORBA. Let alone they are restricted by their respective platforms, for example, the DCom (Distribute Common Objects Model) can only be performed on Windows platforms, while the Common Objects Request Broker Architecture is only a product of the Java platform. It is difficult for them to implement data communication between applications.
In this context, Web Services came into being, which effectively addresses cross-language, cross-platform, and good and secure penetration through the Enterprise Firewall. Its architecture is divided into five levels:
Data communication over the HTTP (HyperText Transfer Protocol) Channel
XML (Extensable Markup Language) data expression
Data encapsulation of SOAP (Simple Objects Access Protocol)
Description Language format of WSDL (WebServices Description Language)
Unified Description, Discovery, and Integration of UDDI (Universal Description and Discovery Integration)
As its advantages include cross-language, cross-platform, and good and secure penetration through the Enterprise Firewall, We are excited. However, it also has some improvements, such:
Data communication over HTTP is slow, especially the first connection.
Requires the additional overhead of a Web Server
After talking about the architecture of WebServices and its advantages and disadvantages, let's start with the topic:
Web Service downgrading in Delphi
In other words, we will explain it with A simple example of verifying the Attribute of WebMethod: it is A simple business process for transferring money from customer A to Customer B.
First, create a WebService under. NET FrameWork1.1. At this time,. net will automatically create a Web application.
We need to create a class AttributeTest, which is under the NameSpace AttributeTesting, then this class will automatically inherit its base class System. web. services. when you need to pay for a WebService, we can set its WebServiceAttribute for this Web application class. The basic attributes include Description and NameSpace.