To consume an external Web Service such as:
http://www.restfulwebservices.net/wcf/WeatherForecastService.svc?wsdl
Create a Web Service > Consumer
Give a Name of the activity, click URI and then select HTTP and paste the above URL.
Click Next and then select the method names, service and port. Enter $Input and Output and click next and Save.
Also create a File Source and use the sample request as input:
<
?xml version="1.0" encoding="utf-8"?>
<
ns:GetCitiesByCountry xmlns:ns="http://www.restfulwebservices.net/ServiceContracts/2008/01">
<
ns:Country>Germany
<
/ns:Country>
<
/ns:GetCitiesByCountry>
Similarly create A File Target which will contain the response from the Web Service.
Now open the Process Designer and create a flow as:
Start > File Source > Web Service Consumer > File Target > End.
Go to Design > Process Flow and from the Manage page select the flow and click on Execute. You can view the output file for the response.
Comments
0 comments
Article is closed for comments.