users@glassfish.java.net

Re: Add basic authentification to webservice (EJB)

From: legolas wood <legolas.w_at_gmail.com>
Date: Thu, 29 Mar 2007 14:32:00 +0430

Can I ask how do you use basic authentication in the client side?
I mean for example you have a swing client that calls this web service
and user enter his/her username and password in your swing application.
how you call the web service then?

I am using DDI to call web services.


glassfish_at_javadesktop.org wrote:
> Hi!
> I have a ejb deployed as web service. To activate basic authentication I must to add something like
>
> <endpoint-address-uri>/HelloServiceBeanService/HelloServiceBean</endpoint-address-uri>
> <login-config>
> <auth-method>BASIC</auth-method>
> <realm>default</realm>
> </login-config>
> <service-qname>
>
> to sun-ejb-jar.xml
>
> Must I copy the generate sun-ejv-jar.xml (the one glassfish generated) and add it there, or is there a way to alter only the <login-config> stuff to the generated deployment descriptor.
> [b]
> I'm quiet happy with the generated one, so I really don't want to copy it, and destroy the generation magic. [/b]
> [Message sent by forum member 'iceandfire' (iceandfire)]
>
> http://forums.java.net/jive/thread.jspa?messageID=208869
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>