Connecting to SOAP Web Service

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.

ws_95.jpg

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.

ws_call_9293.jpg

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.

Have more questions? Submit a request

0 Comments

Article is closed for comments.