Populate data in ADF Table using Web Service Data Control

Sharing is Caring

My previous post was about creating a JAX-WS Web Service from Java Bean. Now In this post, I am going to elaborate on consuming that Web Service in ADF Application using Web Service Data Control 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 the 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

 

Web Service Data Control

Click on Next and shuttle method to the 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 a list of data controls used in the project and necessary information to initialize data control

 

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

 

 

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

 

All done, Now run and check application

The table shows data of all employees returned by Web Service
Cheers 🙂 Happy Learning

Related Posts

Leave a Reply

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