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 <[EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
