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
begin:vcard
fn:Guillaume Sauthier
n:Sauthier;Guillaume
org:<a href="http://www.objectweb.org"><img title="Objectweb" alt="Objectweb" border="0" src="http://www.objectweb.org/media/interface/logoow3.gif" /></a> Open Source Middleware
adr:;;;;;;France
email;internet:[EMAIL PROTECTED]
title:<a href="http://jonas.objectweb.org">JOnAS Application Server</a>
x-mozilla-html:FALSE
url:http://jonas.objectweb.org
version:2.1
end:vcard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]