Home » ADF » Consuming Web Service using ADF Web Service Data Control
Consuming Web Service using ADF Web Service Data Control

Consuming Web Service using ADF Web Service Data Control

Web Service is a client server application that communicate over WWW (World Wide Web) Http. Basically web service allows enterprises to expose business functionality irrespective of platform, language of application because business functionality exposed in such a way  composed of standard XML constructs that can be recognized and used by other applications.

ADF have functionality to consume External Web Service by creating Web Service Data Control. In this tutorial I am using a public web service Currency Conversion using WSDL URL (http://www.webservicex.net/CurrencyConvertor.asmx?WSDL )you can use any other web service same way. So hear is step how to create Web Service Data control and create form using this Data Control.

Sample Code

1. Right Click on your Model Project and Select New. Then Select Web Services from Categories and then select Web Service Data Control From Items.




2. Now Define name of Service and WSDL URL and click on Next Button.



3. Select all  operation that you Expose in Data Control.



4.  Here you can specify format of Response leave this as default and click on Finish  Button.




5. Right click on View Controller project select new and create JSF page.




6. Drag “ConversionRate (Stirng,String)” function from Data Control and drop on Jspx page as a ADF parameter form



7. You have also drag drop response attribute as output text to show result of your web service.



8.  Result







About Manish Pandey

Manish Pandey is a Senior Developer with more than 3 years of experience in JAVA Programming. Currently enhancing skills in ADF.


  1. I was able to follow the steps and get the output. Good Post.


  2. Many thanks!

  3. Hi Manish,

    Thanks for your post, but i am having below questions.

    Why we create webservice datacontrol in Model only??
    Why we will not create web service data control in View Controller.

    Is it mandatory to create it in model only??

    what is the use??
    I need complete information for this.

    I hope you will reply me ASAP.


Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>