Example - Test SOAP-based Web Service for Simple Math Calculations
- Last UpdatedAug 28, 2024
- 1 minute read
-
In the WSDL URL field, enter the following web service address - http://www.dneonline.com/calculator.asmx?wsdl and select Connect.
The Connection dialog displays the status of the connection to web service. Upon the confirmation of a successful connection, select OK.
-
In the Instance Name field, enter the instance of the SOAP connection. By default, it displays the name of the current active SOAP object.
-
From the Operation drop-down list, select an operation - add/divide/multiply/subtract. Each operation uses two variables - x and y.
-
add operation - the value of the x variable is added to the value of the y variable.
-
divide operation - the value of the x variable is divided by the value of the y variable.
-
multiply operation - the value of the x variable is multiplied by the value of the y variable.
-
subtract operation - the value of the y variable is subtracted from the value of the x variable.
-
-
In the Inputs grid, enter the values of x and y to be used for calculation.
-
Select Test.
The resulting values are used for the values of the custom tag.
For instance, for an add operation for values x=3 and y=4, the result value 7 is displayed in the Results grid.