Follow by Email

Thursday, 18 May 2017

Populate data in ADF Table using Web Service Data Control


My previous post was about creating a JAX-WS Web Service from Java Bean. Now In this post, I am going to elaborate about consuming that Web Service in ADF Application and show Employees data in ADF Table

So for this requirement, We need to use Web Service Data Control and from that WSDL we can create ADF Faces components

Let's see how to implement this




  • Create a Fusion Web Application


  • Right click on Model project and Select
    New-- From Gallery-- Business Tier -- Data Controls-- Web Service Data Control


  • Copy WSDL URL of Web Service that we created in the previous blog post and give Name and URL in WSDL creation wizard


  • Click on Next and shuttle method to selected side that you want to consume, Here I have selected getEmpList method


  • Click on Finish, We can see that DataControls.dcx file is generated. This file has list of data controls used in project and necessary information to initialize data control


  • Create a page in View Controller project and drop return value of getEmpList method on page from data control



  • We can see that all attributes of Employees appear in table creation wizard, Click OK button


  • All done, Now run and check application

Table shows data of all employees returned by Web Service
Cheers :) Happy Learning

No comments :

Post a Comment