Everyone knows the technique that is more concerned in Microsoft .NET - [Web Services]

zhaozj2021-02-17  47

Why do I need web service?

After purchasing goods online through the Internet, you may be confused with the way. Often case is due to the distribution problem to find a distribution company, it is not a value-added service for distribution companies.

In order to solve this problem, the distribution company needs to understand more delivery information without reducing the security level, but the security system designed by the security company is very complicated. So can we only use the 80-port (web server port) and only provide information through the web server? So, we have established a new web application to get data from core commercial applications. Delivery companies will pay MONEY for some East, all companies hope to focus on core commercial applications.

What is web service?

Web Service is a normal model for building applications and can be implemented on all operating systems that support Internet Network. Web Service makes the component-based development and web combination to the best, component-based object model, like: Distributed Component Object Model (DCOM), Remote Method Invocation (RMI), and Internet Inter-Orb Protocol (IIOP) have been released For a long time, unfortunately these models rely on special object model protocols. Web Service uses SOAP and XML to further extend these models in communication to eliminate the obstacles for special object models.

Web Service mainly uses the HTTP and SOAP protocols to make commercial data in web transmission. SAOP calls business objects via HTTP, and web users can call remote objects with the WEB-called approach.

*****figure 1*********

So how do you understand the location of the location A of the Web Service? This issue can be answered with a consistent common standard. Descriptive Service Language (SOAP Contract Language (SCL) and Network Accessible Specification Language (NASSL) is a similar language established for this purpose, however IBM and Microsoft agree to Web Service Description Language (WSDL) as a standard language for Web Service.

The structure of the Web Service component is described by Web Service Description Language. Description, WSDL1.1 is an XML document describing the properties and interfaces of the web service. The new specification can be learned in MSDN.Microsoft.com/xml/general/wsdl.asp.

Current task

The best learning method is to create a Web Service. We use an stock quotation system as an example, the Nasdaq and the Australian stock trading system are very famous examples, they all provide an interface for entering company code and acceptance The stock price of the final deal.

We copy a Web Service with the same function.

Our web service's input parameters are stock code, Web Service obtains stock prices by calling intermediate-level commercial logic, and commercial logic functions at the smallest part in Web Service.

Web Service Development Tool

The core component of this application will be Microsoft .NET Framework SDK, but he is still a trial version, you can download in Microsoft Site, my configuration is: operating system Windows 2000 Server, PIII300, 300MB memory.

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

New Post(0)