Authentication for WebServices (Glassfish) [message #905011] |
Wed, 29 August 2012 10:52  |
Eclipse User |
|
|
|
Hi,
for quite some time I'm maintaining an RCP application (in other words a desktop application) that is doing its authentication to a SOAP WebService (Glassfish 2.1 - I hate this one, though, but don't had the chance yet, to replace it) via a simple extension of the Authentication class, using server side Basic Authentication.
Now I decided, that it would be nice to create a proof of concept for a Web Application - and since I'm used to SWT/RCP, I thought RWT/RAP would be the fastest approach.
I'm aware of all the FileUpload and -Download stuff and have already studied the FAQ, but the FAQ is a little thin when it comes to the security stuff, so right now I have now idea how to create some kind of a Login mechanism.
I already have a running RAP prototype with session model and - before the workbench is created - a Login-Dialog is presented, but I don't know how to integrate the credentials from the dialog into a valid SOAP WebService call, which I can use to check, if the credentials are correct.
Can you give me some advice, please?
If the information I gave to you, where a wee bit thin, please aks for more. Everytime when I create a thread I'm uncertain if all the needed information ar included in my questions and statements.
Thank you very much!
Daniel
|
|
|
|
|
|
|
Re: Authentication for WebServices (Glassfish) [message #907367 is a reply to message #907065] |
Mon, 03 September 2012 17:18  |
Eclipse User |
|
|
|
There are also no end of issues using JAX-WS when you're contending with the implementation built in to the JRE and a later version. You need to make sure you know which one is being used at runtime as all the options and vendor specific property names have the package name in them. The JRE implementation is com.sun.xml.ws.internal.... the sun jaxws-impl jar is com.sun.xml.ws... with no "internal" package. Basically, if you set the properties with the constants from the external jar and is uses the JRE impl at runtime, they won't be picked up.
|
|
|
Powered by
FUDForum. Page generated in 0.23873 seconds