Oracle ADF : Consuming Web Service to drive data to UI
The context of this post on Oracle ADF is SOA to ADF integration or Consuming Web Service by creating a Web
Service Data Control to display data on UI Page, it’s your take, anyway!
To get our hands dirty, let’s get started with following
ü
Jdeveloper IDE
(11.1.1.7.0)
ü
Oracle DB XE 11G (Up & Running!)
ü
WL Servers 10.3.6 (Up & Running!)
ü
Internet Explorer 10 (10.0.9200.16384)
[Remember, I asked you to take down the WSDL URL in my
previous post, that’s right! We are going to use the same WSDL URL & the SOA
application deployed earlier is Active on WLS.]
Here it goes,
Ø
Create an ADF application.
Ø
Open up New
gallery from Model Project to create
a Web Service Data Control as
displayed below.
Ø
To the invoked popup, specify a Name & WSDL
URL which we noted down earlier.
Ø
Click “Next” to Shuttle the data control
operation & move on.
Ø
Ignore or leave the defaults for Response Format,
End Point Authentication and finish it.
Ø
Observe the Data Controls palette of JDev to
find the newly added one.
Ø
Create a JSPX page, drag and drop the parameter
as Input Text, the method as Execute operation and the data binding under
the return type as Read-Only Table. Customize
the page design of your choice.
Ø
The resembling page structure looks like as
depicted below.
Ø
Deploy the application to a web logic server and test upon
successful compilation.
Ø
Run the jspx page by adding “/faces/Pages/EmployeeSearch.jspx”
to the URL context root as displayed in the log below.
Ø
Enter the empID value as “100”, click on “Search”
button to see the output as below.


Hi Ajith,
ReplyDeleteNice explanation.
]
Let me know how do we develop asynchronous web services in ADF using Data control or by any other means. Let me know if ADF data control uses JAX-WS as the client.
Regards,
Seshagiri