In this blog we are going to describe How to Call Web Service from System Center Orchestartor 2012, using the Invoke Webservices Activity
- We will elect a certain Webservice for test: http://www.ezzylearning.com/services/CountryInformationService.asmx
- Navigate to the URL to be sure it is working fine.
Note : If you find this WebServices retired; please add your own or add a new one
Example : http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
All next steps should be the same
- Now we need to get the WSDL file from this webservice, so, either to click on the Service Description link or Navigate directly to
- Save this page to your hard drive
- It is time now to call it from Orchestrator, In your runbook, Drag-Drop the Invoke Web Service Activity from the Utilities.
- Set the properties of the Activity as follow:
WSDL: Write the Path of the wsdl file that you have just save.
Method: Select the required Web method, in this example we will use GetContients.
Format Hint: it is Optional, sometimes it gives a result when you click it, depending on the web method it self, in our case, no Fomrat Hint is avaliable.
- On the Advanced Tab, Check on the Address URL, and write the webservice full URL, http://www.ezzylearning.com/services/CountryInformationService.asmx
- In the Security Tab, if the webservice have a HTTP Authentication, write it, other wise, leave it as it is, in our case, we will leave it as it is.
- Add the activity of Append Line as shown, as we are going to display some output there
- configure the Append line as shown.
- Run your Runbook
You can parse the XML Response by Powershell script, or any other language to get your needed data.