axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "keith chapman" <keithgchap...@gmail.com>
Subject Re: How to get the list of published services
Date Sun, 30 Nov 2008 16:32:09 GMT
We do this to display this deployed services in WSO2 WSAS [1] (which is
built on top of Axis2). Specifically the class ServiceAdmin which can be
found at [2].

Thanks,
Keith.

[1] http://wso2.org/projects/wsas
[2]
https://svn.wso2.org/repos/wso2/trunk/carbon-components/service-mgt/org.wso2.carbon.service.mgt/src/main/java/org/wso2/carbon/service/mgt

On Fri, Nov 28, 2008 at 7:01 PM, javier <jrb38fr-axis2@yahoo.com> wrote:

> 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 <vishal.g@pinelabs.com> a écrit :
>
> > De: vhgupta <vishal.g@pinelabs.com>
> > Objet: Re: AXIS2-RAMPART - How to get userId in the webService Method
> > À: axis-user@ws.apache.org
> > 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: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail:
> > axis-user-help@ws.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Mime
View raw message