Hi everybody, I'm looking for a way to get the list of all published services on Axis2. I know there is a file on the repository/services directory where those services are enumerated but I would like to know if there is another way to get this list using an API for example. Please tell me if my request has sense or I need to use an additional technology as UDDI to do it. Thanks in advance.
javier --- En date de : Ven 28.11.08, vhgupta <[EMAIL PROTECTED]> a écrit : > De: vhgupta <[EMAIL PROTECTED]> > Objet: Re: AXIS2-RAMPART - How to get userId in the webService Method > À: [email protected] > Date: Vendredi 28 Novembre 2008, 13h55 > Closing this post as Found the solution. > > Solution is simply to use following in your webservice > method: > > MessageContext msgCtx = > MessageContext.getCurrentMessageContext(); > Vector results = (Vector) > msgCtx.getProperty(WSHandlerConstants.RECV_RESULTS); > String username = > ((WSSecurityEngineResult)((WSHandlerResult)results.get(0)).getResults().get(0)).getPrincipal().getName(); > > > Thanks > > > vhgupta wrote: > > > > I have successfully integrated rampart axis2 and being > able to > > authenticate multiple clients using rampart and java > key stores. Problem > > is how do I get the userId in the web-service method > so that I can > > implement the business logic using the already > authenticated parameter > > rather then implementing new authentication logic. > > > > Please note that I am using axis2-1.3, rampart1.3, > with jdk1.6, > > tomcat6.0.13 > > > > Thanks, > > Vishal > > > > -- > View this message in context: > http://www.nabble.com/AXIS2-RAMPART---How-to-get-userId-in-the-webService-Method-tp20733650p20733953.html > Sent from the Axis - User mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
