Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 60851 invoked from network); 11 Jul 2006 14:07:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Jul 2006 14:07:12 -0000 Received: (qmail 58786 invoked by uid 500); 11 Jul 2006 14:07:08 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 58733 invoked by uid 500); 11 Jul 2006 14:07:08 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 58721 invoked by uid 99); 11 Jul 2006 14:07:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 07:07:08 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rajith77@gmail.com designates 64.233.182.185 as permitted sender) Received: from [64.233.182.185] (HELO nf-out-0910.google.com) (64.233.182.185) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 07:07:07 -0700 Received: by nf-out-0910.google.com with SMTP id x37so221090nfc for ; Tue, 11 Jul 2006 07:06:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=dmghzv9FvqyWtE6exhOnwtCsHbQ0OiNlgARtwHuPI4T1pq3Mnor36kkASnmww0esh3CW7B86lnY5LyW2ucwg8WCpvEuhDpoLFP2lQXfz8hAjAD2xIrK5/7mLqc8Nn7cm7XUPmKEemrBaPU6vqUupnk1j6lChDOKy1FpAvi4BKBE= Received: by 10.78.185.7 with SMTP id i7mr2166929huf; Tue, 11 Jul 2006 07:06:46 -0700 (PDT) Received: by 10.78.193.8 with HTTP; Tue, 11 Jul 2006 07:06:46 -0700 (PDT) Message-ID: Date: Tue, 11 Jul 2006 10:06:46 -0400 From: "Rajith Attapattu" To: axis-dev@ws.apache.org Subject: Re: [Axis2] JSR 181 support In-Reply-To: <44B3AE09.2060108@objectweb.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16116_7274736.1152626806205" References: <44B3AE09.2060108@objectweb.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_16116_7274736.1152626806205 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Guillaume, if the service deployed as an ".aar" then we know which classes to introspect or use ASM. If there is a service.xml then we can easily figure out what the class is. The above approach will make life easier. But I think the expectation is that service.xml is optional. Also there maybe an expectation that the annotated POJO's need not be deployed as an ".aar" I maybe wrong here, but it would be interesting to know what the expectation is within the community. ideas/comments please? Regards, Rajith On 7/11/06, Guillaume Sauthier wrote: GuilGuillaumelaume > > Rajith Attapattu wrote: > > Hi Dims, > > > > I finnaly managed to get an annotated POJO exposed as an axis2 web > > service. > > Before I submit the patch I need to clarify a few things. > > > > 1. We need to figure out a way to find the classes marked with > > @WebService. > > Right now I just have my test POJO hard corded in > > WSMToAxis2ServiceBuilder to test things. > > > > Ideas? suggestions pls? > Hi > > Basically, you have to introspect deployed services to find annotated > classes. > Ie : when an aar is deployed (the archive usually with the service.xml), > you can either look at all the classes with reflection, or use ASM to > find annotated classes. > BTW, Is the service.xml optionnal ? > > Regards > Guillaume > > There was a few disscussion, but can we come to an agreement? > > > > 2. Generating Annogen beans for meta data (This is more or less a WSM > > problem, will cross post there as well) > > The annogen task that generates code based on the annotated > > classes seems to have bug with inner classes. > > For example WebParam.Mode gives compilation errors as it cannot > > the handle the inner class > > So I eidted the generated source file to get it working. > > > > This maybe an option since the javax.jws classes are static and > > does not need to go through annogen code generation all the time. > > But it would be nice if this worked so that I can add a task in > > wsm to compile the javax.jws classes and generate the required > > AnnoBeans without manual intervention. > > > > Regards, > > > > Rajith > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-dev-help@ws.apache.org > > > ------=_Part_16116_7274736.1152626806205 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Guillaume,

if the service deployed as an ".aar" then we know which classes to introspect or use ASM.
If there is a service.xml then we can easily figure out what the class is.
The above approach will make life easier.

But I think the expectation is that service.xml is optional.
Also there maybe an expectation that the annotated POJO's need not be deployed as an ".aar"

I maybe wrong here, but it would be interesting to know what the expectation is within the community.
ideas/comments please?

Regards,

Rajith

On 7/11/06, Guillaume Sauthier <Guillaume.Sauthier@objectweb.org > wrote:GuilGuillaumelaume
Rajith Attapattu wrote:
> Hi Dims,
>
> I finnaly managed to get an annotated POJO exposed as an axis2 web
> service.
> Before I submit the patch I need to clarify a few things.
>
> 1. We need to figure out a way to find the classes marked with
> @WebService.
>     Right now I just have my test POJO hard corded in
> WSMToAxis2ServiceBuilder to test things.
>
>    Ideas? suggestions pls?
Hi

Basically, you have to introspect deployed services to find annotated
classes.
Ie : when an aar is deployed (the archive usually with the service.xml),
you can either look at all the classes with reflection, or use ASM to
find annotated classes.
BTW, Is the service.xml optionnal ?

Regards
Guillaume
>   There was a few disscussion, but can we come to an agreement?
>
> 2. Generating Annogen beans for meta data (This is more or less a WSM
> problem, will cross post there as well)
>     The annogen task that generates code based on the annotated
> classes seems to have bug with inner classes.
>     For example WebParam.Mode gives compilation errors as it cannot
> the handle the inner class
>     So I eidted the generated source file to get it working.
>
>     This maybe an option since the javax.jws classes are static and
> does not need to go through annogen code generation all the time.
>     But it would be nice if this worked so that I can add a task in
> wsm to compile the javax.jws classes and generate the required
> AnnoBeans without manual intervention.
>
> Regards,
>
> Rajith
>
>
>
>
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org



------=_Part_16116_7274736.1152626806205--