Prerequisites: None.
Using and Configuring the Call Web Service Method Advanced Command
After adding the Call web service method advanced command to your wizard, open it to edit its parameters.
To add a Web Service URL, click on the Discover Services button.
In the Discover Web Service dialog, enter the Service URL and Protocol. Then click Discover.
If the Service and Method fields do not update with values, it means the selected protocol has not been recognized for the given web service and you must select a different protocol.
If there are multiple methods for the chosen service, you can select it from the drop-down list.
Click on the Select Service button. All fields are then filled in automatically in the Call web service method window:
Now, fill in the parameter values and click OK.
You can use this URL to implement the above example: http://www.dneonline.com/calculator.asmx
Example: Get Exchange Rate per Date
Below you can find an example of using the Call web service method advanced command. We created a global group ‘Get Exchange Rate per Date’. First, we set Date and Currencies variables. Then, we implemented the web service method with defined variables.
We saved the response from the web service into the result variable.
Since the result variable is a string (as you can see below), we must split the result value using the Split advanced command in order to extract the rate.
In this scenario, we could first use <decimal> as the delimiter, then perform a 2nd split using < as the delimiter to obtain just the numerical value.