WebService Behavior learning experience

xiaoxiao2021-03-06  67

XML Web Services Behavior enables client scripts to call remote methods disclosed by Microsoft .NET XML Web Services or other web servers that support Simple Object Access Protocol (SOAP).

OBJECTIVE: To provide a simple method to use and utilize SOAP without expertise with SOAP implementation.

step:

1. Download WebService.htc, Many online article introductions to this file can be found on Microsoft's website, but when I enter the address point, I only see the prompts that do not exist in the webpage.

2. Create a WebService file to assume MathService.asmx, which provides both ADD and Subtract functions

3. Create a call for web file Sample.htm (file content is analyzed in detail below)

4. Copy the webservice.htc to the same directory of Sample.htm

5. Browse this page through your browser

The content of Sample.htm is analyzed below (from MSDN)