users@glassfish.java.net

RE: Howto call Webservice on JDBCRealm secured server

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Fri, 29 Jul 2011 20:41:21 -0400

Florian-

did you create the user-table as suggested?
http://blogs.oracle.com/swchan/entry/jdbcrealm_in_glassfish

did you create the security-role-mapping in sun-<application/ejb-jar>.xml?
<security-role-mapping>

    <role-name>Employee</role-name>

    <principal-name>Calvin</principal-name>

  </security-role-mapping>


Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung
 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.




> Date: Thu, 28 Jul 2011 14:03:02 +0200
> From: FKirchner_at_gmx.net
> Subject: Howto call Webservice on JDBCRealm secured server
> To: users_at_glassfish.java.net
>
> Hi,
>
> I have a Webservice (SOAP) running on Glassfish 3.1. I configured a JDBCRealm, added some role annotations and added the role mapping and realm to glassfish-application.xml. When I call the annotated methods I now get an exception saying "Client not authorized ...". Everything as expected.
>
> My problem is the client side (Java application). How do I login and call the Webservice? I couldn't find anything in the Glassfish documentation.
>
> Thanks,
>
> Florian
> --
> NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
> Jetzt informieren: http://www.gmx.net/de/go/freephone