Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Accessing a secure web service from ADF Mobile Application

3157571Mar 14 2014 — edited Mar 17 2014

Hi,

We are trying to create an ADF Mobile application that uses a secure web service that is in the Oracle EBS (with SOA Suite).

We are using JDeveloper 11g 11.1.2.4.0

Initially we created a Web Service Data Control(SOAP/REST) from the gallery and provided the WSDL. We tried running it on a simulator but was not getting anything. We couldn't also find a way to provide the username and password. So we left it there.

Then we tried creating a Java Desktop Application to check if it was a problem with our server. In the desktop application, we created a 'Web Service Client and Proxy' from the new gallery and then followed the steps and used oracle/wss_username_token_client_policy, added the code below for putting username and password and was able to call the service and retrieve data.

(reqContext.put(BindingProvider.USERNAME_PROPERTY,"DBAKER");

reqContext.put(BindingProvider.PASSWORD_PROPERTY,"xxxxx");

Then we thought of going back to the ADF Mobile application and creating a 'Web Service Client and Proxy' there but when we built the project, we got the "annotations are not supported in -source 1.4 " & "generics are not supported in -source 1.4 " errors and found that ADF Mobile doesn't support beyond Java 1.4.(Is that right?)

We then found the video "Accessing Secured Web Services from ADF Mobile" by Shay (https://www.youtube.com/watch?v=rk5om3o3Pas) and saw that he was using a Login server.

We wanted to confirm if using a Login server is the right way to access a secure web service from an Oracle ADF Mobile application?

Are there other ways to do it?

If we have to create a Login server, can you provide links that will put us on the right track in creating a Login server that can connect to EBS?

Thank you.

This post has been answered by Shay Shmeltzer-Oracle on Mar 14 2014
Jump to Answer

Comments

Frank Nimphius-Oracle

hi,

have you read the product documentation? Using Web Services - 11g Release 2 (11.1.2.4.0)   --> see: 9.5 Accessing Secure Web Services"

Frank

3157571

Will check out now Frank.

Thank you

3157571

Hi Frank,

I read about the Login Server. I tried creating an ADF Fusion web app, created an empty page, added security to it.

Then i went to my ADF Mobile application, created a data control for my service, created a feature and enable feature security and set it to remote.

Then i set the application login server in the admf-application.xml.

When i deployed the application, it brought up the username and password screen and when i gave the credentials, i got a message telling Invalid username and password.

I am not able to understand the concept of the Login server. As in, what URL should i set as the application login server if i want to connect to Oracle EBS?

Thank you

Mathew

Shay Shmeltzer-Oracle
Answer

The URL should point to a protected page that will prompt the user for basic authentication.

See an example here:

https://blogs.oracle.com/shay/entry/accessing_secure_web_services_from

As well as the blogs linked at the bottom of that entry.

Marked as Answer by 3157571 · Sep 27 2020
Shay Shmeltzer-Oracle

Specifically for integrating with user/pass from EBS you should look at the EBS Java SDK - more info here: https://blogs.oracle.com/jruiz/entry/adf_and_oracle_e_business2

1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 14 2014
Added on Mar 14 2014
5 comments
231 views