Login
Register

Home

Trainings

Fusion Blog

EBS Blog

Authors

CONTACT US

OA Framework - All Articles
  • Register

Oracle Gold Partners, our very popular training packages, training schedule is listed here
Designed by Five Star Rated Oracle Press Authors & Oracle ACE's.

webinar new

Search Courses

In this article I will paint a scenario whereby a Web Service can be integrated with "OA Framework" screen. As with delivering any solution, the first stage is design. This article paints a step by step design approach for a business requirement.

 

How do I explain web service in plain english?

Lets say that there exists an API, written by someone else, hosted somewhere else, but yet I wish to use it. That "someone else" can publish that API over the web. Being published over the web makes it a web service.

 

What is WSDL? I hear this word a lot

Web Services are usually hosted on a remote server, but yet I need to use it. Not only that, I also need to know the input/output parameters etc. All such parameters and procedures named are defined in WSDL.

For example http://ws.strikeiron.com/textdisguise/CaptchaService?WSDL



This example presents one example of a Web Service integration with Oracle Apps version 11.5.10

We see too many web services examples of Hotel Reservations, Credit Checking etc. Hence I thought it would be usefull to discuss something other than usual credit checking.



Business Requirement

To implement a web service that provides captcha interface on a Registration Page.

This could be needed if you want exernal people[registering on your Web Facing SelfService Module] to enter a text from a randomly generated Image. Effectively, when an external person tries to register themselves with Oracle Apps[say Learning Mgmt], you might want them to enter characters as displayed in image. This will keep the spams away from your website, as they won't be able to register.



Why is a web service is required in this case?

You have three options :-

Option 1.  Build a small application for Captcha Image  yourself

Option 2. Use a standalone free, open source Captcha Software libraries.

Option 3. Use a Captcha web service, from a Web Service provider, for example company called Strikeiron provides a Web Service that will do the following:-

A. Provides an API that "returns URL of an image" with letters embedded within the image

B. Provides another Web Service API to validate/cross check the text entered by the user against the text in image.

 

If you decide for Option 3, then Web Service is the answer.



Why not use an "off the shelf" software for Captcha?

There are free open source Captcha Software called jCaptcha. http://jcaptcha.sourceforge.net/

However the DBA's will have to maintain that software in case of any bug-fixes. The beauty of web service is that any bug fixes, will be managed by the Web Service provider.



Is there any downside of Web Service approach?

Indeed, the server on which the web service is hosted may be down. Hence you will need some level of SLA[Service Level Agreement]. Also the company providing web service might go bust(yuck). To my surprise I did not find likes of google or yahoo providing a web service. Do you ever see their search engine being unavailable?



Do we need to customize the OA Framework page, to integrate such Web Service in "User Registration Page"?

Not really, you can implement this via OA Framework Extension.

Let me explain this with steps:-

Step A. Generate the stubs for WSDL of the web service

Stub is nothing but a set of java classes that reference the remote web service. WSDL is a URL that service provider like strikeiron provides. jDeveloper will generate those stub classes for you, [you can latter ftp those to JAVA_TOP/oracle/apps/xxcustomdir].

jDeveloper wizards will generate such stubs for you. Effectively it creates local class[just skeleton] files for the remote API[web service]

Step B. Create a new item using personalization, of type "image", on that OA Framework page.

Step B-2. Create another field in which user will type their response. This too can be done using personalization(add new item) of type messageTextInputBean

Step C. Extend the Controller** on that page and then Substitute the original Controller.

Step D. In processRequest method within controller, call the Web Service to get the URL of captcha image

Step E. Web service api will return URL of captcha image. Assign that URL to image field of step (b)

Step F. Above steps will cause the Captcha image to be rendered on the screen.

Step G. In the processFormRequest of Controller, retrieve the word entered by user, from the field [Step B-2]

Step H. Call the Web Service API again(this time in validation mode). You will possibly pass ID of the captcha image along with response entered by the user. Validation API of Web service will either return true or false, based upon which you can raise error during registration.

 

Credits: The idea of using Captcha as a Web Service is that from my colleague Sailen Kotecha[ex-Oracle Consultant].

 

** Oracle does not recommend substitution of Controller, but this becomes inevitable. Better substitute than Customize.

 

The above steps form the design approach that I wish to undertake to accomplish this task.

The article will be tuned with lessons learnt post successfull implementation of this exercise.



Challenges:-

1. 11.5.10 uses jDeveloper version 9.0.3. It remains to be seen how good is that old version for generating Stub Classes[local classes]



The idea behind writing this article is to give you an example of how Oracle Applications Framework might be integrated with a external Web Service. Please leave a comment if you have any questions.


Anil Passi

Comments   

0 #1 Anil Passi 2007-01-04 00:00
Hi Vishal,

I think the only way is to customize.
Use a Java Script to pop a message. But you will need to customize login page.

Thanks
Anil Passi
Quote
0 #2 Anil Passi 2007-01-04 00:00
Hi Vishal,

I think the only way is to customize.
Use a Java Script to pop a message. But you will need to customize login page.

Thanks
Anil Passi
Quote
0 #3 Anish 2007-02-13 00:00
Hi Anil,

Here is another example of integrating Web services with OAF, this time calling the google search api from J Dev.
http://www.oracle.com/technology/oramag/webcolumns/2003/techarticles/balusamy.html

Also for other google apis, please see http://code.google.com/

Regards
An ish.
Quote
0 #4 Anil Passi 2007-02-13 00:00
Hi Anish

Thanks for sharing this.

Unfort unately google API have stopped issuing new Keys. Without having google-api-key you cant test their webservices. Hence you will find that its not possible to mimic those steps at your end.

Thanks,
Anil Passi
Quote
0 #5 Anil Passi 2007-04-26 00:00
Hi ANjani

You need to include the DFF into the page your personalization .

Use the following steps
To display the Flexfields attribute:
1. click Personalize Region link.
2. Expand the hierarchy structure and click Personalize to open the Personalization
Properties page.
3. To display the flexfield, change the value in the Render column to True
4. To display all flexfield attributes, leave the Flex attribute List field blank.
To display only selected attributes, enter the attributes in the Flex attribute List
using the following format:
contex t1|attribute1|a ttribute||conte xt2|attribute 1
For example,
Globa l Data Element|Home Address|Home Phone
5. Apply the personalization s

Thanks,
A nil Passi
Quote
0 #6 Tripti Goenk 2007-08-07 08:31
Hi,

Requiremen t -> To run existing page from custom schema, instead of apps schema Here custom schema has the exact table structure as the normal apps but with few extra records which're missing in apps. This page is only for searching records from db schema and based on expert VO.

Steps perfomed:
1. For this, i exported the page and all its BC4J components on respective folders of jdev/myprojects dirrectory
2. Created database connection with custom schema.
3. modified dbc file (FNDNAM) with custom schema name.

TEST:
Wh ile testing it from jdeveloper it correctly fetches data from custom schema whereas when i import this page on server with username and password of my custom schema it still shows data only from apps.

Question : Can you please guide how do we pass connection information for execution, apart from import command?

Pleas e reply.

Thanks
Tripti
Quote
0 #7 Anil Passi 2007-08-07 16:36
Hi Tripti

You simply need to create a synonym into the apps schema.
The synonym will point to the table in your bespoke/custom schema.

OA Framework security connects to APPS Schema only.

Thanks,
Anil Passi
Quote
0 #8 Vijay Shanmugam 2007-11-20 02:26
I understand the stub approach to invoke the API. But does Oracle Apps 11i techstack provide required soap client libraries or we need to include libraries? I am sure in R12, the 10.1.3 techstack provides required soap jars but was not aware if it was possible in 11i.

Thanks
Vi jay
Quote
+1 #9 Dharmesh 2008-02-28 15:47
Hi Anil,

I've a question and I couldn't find forums in this website so I'm asking here. I'm sorry if it is not appropriate to ask here.

I've created one JSP that I'm calling from OA Framework (Self Service Page). I want to access OA Framework's current ApplicationModu le and ViewObjects in this JSP. How do I do that?


I found following code from metalink, but I don't know what to pass as "applicatioId".

oracle.jbo.ht tp.HttpContaine r httpc = oracle.jbo.http .HttpContainer. getInstanceFrom Session(pageCon text.getSession ());
oracle.jbo .common.ampool. SessionCookie cookie = httpc.getSessio nCookie(applica tionId);
am = (oracle.jbo.ApplicationModu le)cookie.useApplicationModu le();

Any help will be highly appreciated.

T hanks!
Dharmesh
Quote
0 #10 Hitesh 2008-06-18 02:51
Hi Anil,
This article is good and i want to implement it.
I want to know that how to generate Stub for WSDL and in ProcessRequest how to call the Web Service to get the URL of captcha image
Quote
0 #11 Hitesh 2008-06-18 05:37
i got an idea from your another article related to webservice with Captcha.
thanks a lot. you have explained nicely.
Quote
0 #12 Frederic Aubin 2009-06-11 14:01
Message for All,

In v12, the version of the jars with the designated JDeveloper (10.1.3.3 if I remember) are not the same as those on the server. The generated stub will run perfectly in JDeveloper but not on the server. Be carefull. My work around was not so pretty. I simply get back to Jdeveloper 10g et generate the stubs classes from there. After that, I had to copy 2 jars on the the server and everything got ready and running.

Good luck !
Quote
0 #13 Arnab_1981 2009-07-21 07:00
Hello Anil:

I am unable to find an option called Web Service Stub/Skeleton in the 10.1.3.3.0 version of JDev. Can you please let me know what is the option to create a stub web service in Jdev and thes steps for doing this.

Thanks
A rnab
Quote
0 #14 Nageshreddy 2010-01-14 08:32
I need to create a Web Service producer.
Can i do it using OAF.
If yes can somebody point me to the location/URL were i can find documents/refer nces.
Quote
0 #15 TamiPena20 2011-07-23 03:13
I will recommend not to hold back until you get enough amount of money to order goods! You can just take the mortgage loans or credit loan and feel fine
Quote
0 #16 Muhammad Mubeen 2013-07-30 03:31
Hi Frederic Aubin,

I am also facing the same problem as you explain. The form which I designed to call webservice is working fine on my jdeveloper when I am executing it onto my laptop. But when I am going to execute same OAF form, from ebs after registration then It is not calling webservice. Can you tell me which .jar files I have to upload onto the server as you mention in your comments. Thanks for your help!!!

Regard s,
MMK
Quote
0 #17 Jonerechal 2021-06-01 19:03
Those guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp a great deal more around this condition. and I could assume you are an expert on this subject. Same as your blog i found another one Oracle Fusion Financials.Actu ally I was looking for the same information on internet for Oracle Financials Cloud and came across your blog. I am impressed by the information that you have on this blog. Thanks a million and please keep up the gratifying work.
Quote

Add comment


Security code
Refresh

Search Trainings

Fully verifiable testimonials

Apps2Fusion - Event List

<<  Apr 2024  >>
 Mon  Tue  Wed  Thu  Fri  Sat  Sun 
  1  2  3  4  5  6  7
  8  91011121314
15161718192021
22232425262728
2930     

Enquire For Training

Related Items

Fusion Training Packages

Get Email Updates


Powered by Google FeedBurner