ADF : Tutorial - Find weather using ADF and SOA

A webservice is exactly what its name says, it is just a service.
It will provide you with a service like for eg: taking a city name as an input and providing you with the corresponding weather details as an output.

You don't have to worry about the underlying implementation of the SOA webservice.
But you do have to worry about what to do with the output of the webservice.
You need to provide a UI for the end user to enter the input parameters and to display the output of the service invocation.

You can use various technologies/frameworks to build a UI on top of a SOA webservice.
ADF is one of them.
Lets see how to build an ADF UI on top of a publicly available webservice.

We will use the Global Weather public webservice.
WSDL : http://www.webservicex.net/globalweather.asmx?WSDL

ADF : Create viewcontroller and model projects in Jdeveloper

One of the first things to do before you can try your hand at developing ADF artifacts is to create an ADF viewcontroller project.
Lets see how to create an ADF viewcontroller project in JDeveloper in a few simple steps.

1) In JDeveloper go to File --> New
2) Select General --> Applications and select Fusion Web Application (ADF) on the right and click OK.


ADF : Create a SOA web service data control

Web services created in SOA can be consumed in a variety of applications.
You can build an ADF ui on top of a web service to display the data in a user friendly way.

The first step for using a SOA web service in an ADF application is to create a web service data control.
The UI can be any thing like ADF UI, ADF mobile UI, Excel spreadsheet etc.
The data control provides access to the underlying SOA web service without exposing any of the implementation details.
The UI layer need not know any of the technical details of the underlying SOA web service.

Lets see how to create a web service data control in ADF.
We will use a publicly available web service for this example.
Lets use the Global Weather web service.