Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

How do I do basic authentication in a web services client

caspersgrinMar 19 2014

At Linfield College we do network account management in real time via servlets running in GlassFish.  Since email accounts are hosted on Exchange, I need too be able to access Exchange to setup account, do email forwarding and also implement privacy in compliance with FERPA (a federal standard that affects to students).  The code to do all that is written in C# as an ASP.NET web service hosted in IIS.  I use Eclipse Kepler for Java EE development that includes the Web Tools Platform.  To create the client, a start by creating a Java Project and add a classfile. Then I highlight the classfile and  select new -> other -> web services.  I add the WSDL and under configuration I click client project and then finish.  That gives me a proxy stub that I can use to access all the published web methods, but what it doesn't give me is any way to implement authentication.  I want to implement basic authentication, what am I missing?

Thanks,

Rob Tanner

Linfield College

Comments

Mike Kutz

Your procedure is in APP. Correct?

What is your Parsing Schema Name?  It sounds like XXAPEX.

What is your Workspace Schema name? I'm going to guess MILOWSKI

You need to grant permissions to the Parsing Schema in order for the APEX Application to work.

I've found that, under some circumstances, you have to grant permissions to the Workspace Schema too.

I forgot if I still needed the perms after I created the page.

MK

Tomek

Not sure What do you think I missed:

Workspace Name: AIS

Schema connected to the workspace: XXAPEX

Apex Login: MILOWSKI

There is only one schema XXAPEX.

MILOWSKI is my username in Apex with default schema set to XXAPEX.

Mike Kutz

Ok.  I think I understand what is happening.

Creating the synonym should have worked.

However, you need to Create Form on Procedure using the synonym XXAPEX.PAGE_MGR not the underlying package APP.PAGE_MGR.  (current guess)

I haven't had time to try to reproduce the problem.

MK

Tomek

Thanks Mike but this is not working either...

I made sure the synonym is in place. In APPS schema executed the following:

GRANT ALL ON page_mgr to xxapex WITH GRANT OPTION;

DROP SYNONYM xxapex.page_mgr;

CREATE SYNONYM xxapex.page_mgr FOR page_mgr;

When I login to Apex and use "Object Browser" I see the synonym is right in place.

However, when creating the "form on procedure" the package page_mgr is not there listed in the list nor I can just type it in. I specify the XXAPEX as procedure owner.

Tomek

Does anyone experienced this problem?

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

Post Details

Locked on Apr 16 2014
Added on Mar 19 2014
0 comments
691 views