Tuesday, February 19, 2013

Maven and Profile

How to create a Maven Project in Eclipse:

1. Install Eclipse 4.2.0 (Juno) or latest
2. Add the maven plugin in Eclipse using the following update site URL.
      http://m2eclipse.sonatype.org/sites/m2e
(or)
      http://m2eclipse.sonatype.org/update/ 
(or)
      http://m2eclipse.sonatype.org/update-dev/ 
3. Create Maven Project
















4. Run the Project using Maven.


How to use Profile in maven build?

Create Maven POM and Profile file under the root folder:


  1. Maven pom file is               : pom.xml
  2. Maven profile file name is   : profile.xml








This i how you have to refer the profile file in Maven POM.xml file:

Wednesday, February 13, 2013

ADF Business Comonent

ADF Business Componenet ( BC)

ViewObject:
View Object is nothing but the SQL Query Object. It represents a row of a table.
http://docs.oracle.com/cd/E15051_01/web.1111/b31974/bcquerying.htm

Advanced View Object:
If you are not using Table/DB and want to have a View Object using your own populated values or programatically. then refer this section;
http://docs.oracle.com/cd/E15051_01/web.1111/b31974/bcadvvo.htm#sm0331

http://docs.oracle.com/cd/E15051_01/web.1111/b31974/bcquerying.htm



Friday, February 8, 2013

ADF WebService


1. How to Invoke a Web Service using ADF.

There are many ways to invoke the Web service in ADF. One of the best and controllable way is Proxy way. Follow the steps below to do so.

Steps to Invoke Web Service:
1. you should have admin rights in your PC
2. Install JDeveloper 11.1.1.5.0 ( you can download it from Oracle Site)
3. Create a Generic / Model Application
4. Create a Generic/Model Project under the application.
5. Right click on the project, NEW -> Web Service (under All technologies , Business Components) -> Web Service Proxy.
6. Follow the Wizard ( it copies the WSDL into your local) and Finish.
7. Open the Client file "XYZSoapHttpQSPortClient.java"
8. Right client on client file and Run. it will invoke the Web service.


<TBD> For the following, come back  blog later....
1. How to Create a Data control from a Web service (WSDL)
2. How to make the WebService Data control as a re-usable Service in ADF.
3. How to invoke the Webservice DataControl in your Viewcontroller Layer
4. How to test and dubug
5. How to modify the WebService Datacontrol when the WSDL has been changed,
6. What is the advantage and dis-advantrage of using the WebService Datacontrol.
7. How to create Data Controll for Secured webservice
8.  How to create Java client proxy from Webservice WSDL in ADF?
9. How to Adjust the Endpoint for a Web Service Data Control ( when moving test env to prod)




References:
Oracle Blog:
https://blogs.oracle.com/middleware/entry/calling_web_services_using_adf_11g

Oracle Doc;
http://docs.oracle.com/cd/E16162_01/web.1112/e16182/web_services.htm
http://www.oracle.com/technetwork/developer-tools/jdev/overview/index-100269.html
http://www.oracle.com/webfolder/technetwork/tutorials/obe/jdev/obe11jdev/ps1/webservices/ws.html

Vedios:
http://www.youtube.com/watch?v=XF18vXxYkxM