Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 71901 invoked from network); 30 Nov 2008 16:32:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2008 16:32:49 -0000 Received: (qmail 37306 invoked by uid 500); 30 Nov 2008 16:32:52 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 37259 invoked by uid 500); 30 Nov 2008 16:32:52 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 37247 invoked by uid 99); 30 Nov 2008 16:32:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Nov 2008 08:32:52 -0800 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of keithgchapman@gmail.com designates 64.233.170.191 as permitted sender) Received: from [64.233.170.191] (HELO rn-out-0910.google.com) (64.233.170.191) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Nov 2008 16:31:22 +0000 Received: by rn-out-0910.google.com with SMTP id 45so559176rnw.14 for ; Sun, 30 Nov 2008 08:32:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=Ulc1srUR9nto2mv3vNxkv/v35RzKLyFY9fIUYMPsAOQ=; b=PPQUJNKE3/KZx3Ou550a8mRdzN/ExgQH6uv5leLEGvMRDnDawUM3L3JLHhkhkoV54d 3M1yp52K4O55U+o6DCDbTR4NWsxlpuzHzWoTLiwVt3U1m38Ki61gLDmT1gQzS8comgmV Z3ywDXQMXCjJuZq67pDF5u6kYgHGCs8R50O4A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=NqNMsbXw8uqEd+YEes6bmIdsTzjJnx/jWlwAhoiSw0HnH+i3j++ro6c0XpUKkgGx9B EWeJyCbwylXIm1Lb8WWVmR4/jAkLL3cs4rtlB+3R6St2ZckvYcu6JqaSPgAZ6yfVaxo1 VU6LTKwZux+saWQcDYR5D9c2AgyPhMfTmlIvA= Received: by 10.151.105.13 with SMTP id h13mr7231313ybm.195.1228062729445; Sun, 30 Nov 2008 08:32:09 -0800 (PST) Received: by 10.151.73.10 with HTTP; Sun, 30 Nov 2008 08:32:09 -0800 (PST) Message-ID: Date: Sun, 30 Nov 2008 22:02:09 +0530 From: "keith chapman" To: axis-user@ws.apache.org, jrb38fr-axis2@yahoo.com Subject: Re: How to get the list of published services In-Reply-To: <143596.80192.qm@web53703.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_33220_28244057.1228062729415" References: <20733953.post@talk.nabble.com> <143596.80192.qm@web53703.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_33220_28244057.1228062729415 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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.wso= 2.carbon.service.mgt/src/main/java/org/wso2/carbon/service/mgt On Fri, Nov 28, 2008 at 7:01 PM, javier 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 a =E9crit = : > > > De: vhgupta > > Objet: Re: AXIS2-RAMPART - How to get userId in the webService Method > > =C0: 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 =3D > > MessageContext.getCurrentMessageContext(); > > Vector results =3D (Vector) > > msgCtx.getProperty(WSHandlerConstants.RECV_RESULTS); > > String username =3D > > > ((WSSecurityEngineResult)((WSHandlerResult)results.get(0)).getResults().g= et(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 > > --=20 Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org ------=_Part_33220_28244057.1228062729415 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline We do this to display this deployed services in WSO2 WSAS [1] (which is bui= lt 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 Axis= 2. 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 s= ense 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 =E9crit :

> De: vhgupta <vishal.g@pine= labs.com>
> Objet: Re: AXIS2-RAMPART - How to get userId in the webService Method<= br> > =C0: axis-user@ws.apache.or= g
> 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= =3D
> MessageContext.getCurrentMessageContext();
>               Vector results =3D (V= ector)
> msgCtx.getProperty(WSHandlerConstants.RECV_RESULTS);
>               String username =3D > ((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://ww= w.nabble.com/AXIS2-RAMPART---How-to-get-userId-in-the-webService-Method-tp2= 0733650p20733953.html
> Sent from the Axis - User mailing list archive at
> Nabble.com.
>
>
> ---------------------------------------------------------------------<= br> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail:
> axis-user-help@ws.apac= he.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
------=_Part_33220_28244057.1228062729415--