Introduction to XML Web Service created using ASP.NET

zhaozj2021-02-16  70

The XML Web service is a programmable entity that provides special features (such as application logic) and can be accessed by systems such as XML, HTTP, and SOAP. Writing in any language, the application running on any operating system can call the XML Web service.

The XML web service can be used inside a separate application or can be disclosed to the outside through the Internet to use by any number of applications. Since the XML Web service is to be accessed by the standard interface, the service allows the heterogeneous system to work together as a separate computing network. A core feature of the XML Web service is that there is a high degree of abstraction between the implementation and consumption of the service. Since the XML web service is created and accessed using XML-based message mechanisms, the XML Web service provider and client only need to know the other party's input, output, and location.

The XML Web service structure provides a discovery mechanism (a service description defining how to use these services and standard communication access formats) to locate the XML Web service.

"Discovery" is a process of positioning one or more documents that use the Web Service Description Language (WSDL) to describe a specific XML web service. Once the service is found, the WSDL document provides a description of the interaction operation supported by the service. XML Web services communicate with open access formats, which are those acceptable protocols that can support the most commonly used Web standards. SOAP is a key protocol for XML web service communications.

ASP.NET enables you to generate and publish XML web services by using the same programming structure as generating and publishing an ASP.NET web page. The XML Web services created using ASP.NET use the industry standards shown in the following table.

Industrial standards are used to use the XML Web service XML created by ASP.NET Use SOAP to communicate with XML web services. XML is used to encode the response when communicating with the XML web service using the HTTP-GET and HTTP-POST protocols. SOAP A XML-based message exchange protocol for communication between XML web services and its clients. The Web Server Description Language (WSDL) describes the appointment of the message, and the XML Web Services explains these messages when communicating with the XML Web service client. XML Architecture Definition Language (XSD) provides a general-purpose system that allows cross-platform definitions and delivery. For XML Web services, XSD defines XML in the SOAP message encapsulated in XML Web services reception and sends. Structure and data type. Application / X-WWW-Form-Urlencoded is used to encode the MIME type of parameters in the URL. Using this encoding can encode the request parameters of the XML web service of the HTTP-GET and HTTP-POST protocols.

转载请注明原文地址:https://www.9cbs.com/read-16321.html

New Post(0)