Simple use of WebService

WebService is a platform-independent, low-coupling, self-contained, programmable web-based application that can be described, published, discovered, coordinated, and Configure these applications for developing distributed interoperable applications.

WebService technology enables different applications running on different machines to exchange data or integrate with each other without borrowing additional, specialized third-party software or hardware. Applications implemented according to the WebService specification can exchange data with each other regardless of the language, platform or internal protocol they use. WebService is a self-described, self-contained, available network module that can perform specific business functions.

WebService provides a common mechanism for business process integration across the enterprise and even among multiple organizations.

//Create webService (note: there is no web service template in .NET4.6)

1. Create an empty project

2. Right click on the project and add a new item


3.HelloWorld is an automatically added method, add the Multiplier method below


4. View in browser


5. There are two methods in the browser to click on the Multiplier we defined


6.

7. Add a new item à web form and add the following code

8. code behind


9. The result of running in the browser is:





Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324728374&siteId=291194637