Chandika, Did you check the section jaxws on Axis2's site [1]? Using annotations and then deploy your jars on the servicejar directory you can publish your services using annotations (no xml descriptor needed). Take a look to this how-to [2] in order to have an idea. Then, on the client side Axis2 lets you consume the exposed services using generated stubs (wsdl2java) or direclty with the ServiceClient API [3,4].
Cheers javier [1] http://ws.apache.org/axis2/1_4_1/jaxws-guide.html [2] http://charithaka.blogspot.com/2008/10/how-to-deploy-jsr181-annotated-class-in.html [3] http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html [4] http://wso2.org/library/3862 --- En date de : Jeu 4.12.08, Chandika Gunarathna <[EMAIL PROTECTED]> a écrit : > De: Chandika Gunarathna <[EMAIL PROTECTED]> > Objet: Why No Annotations? > À: [email protected] > Date: Jeudi 4 Décembre 2008, 8h35 > Hi, > Can someone pls tell me the need for service.xml > descriptor?? Why not use > annotations?? > > I am coming from a .NET background into Java and I am > finding the use of Web > Services on Java much less than attractive...Why is Axis2 > so far behind?? > > Forgive me if I am overlooking extremely easy ways of > getting a web service > up and running on Axis2...but I am following the Quick > start guide...but it > is not starting to look any quicker...it keeps talking > about a service.xml > which is really not needed with some nice little > annotations... > > Also...I am using eclipse and the plug-in that comes with > it does no > good...I have Axis2 Jars in my project...but when I point > to my POJO that I > want to expose as a web service...it says that the class is > NOT found when > attempting to generate the WSDL file...I did a little > research on this and > found many other users with the same problem but no > concrete solution... > > Can someone throw some light on these issues...because I am > turning out to > be one very disappointed guy over > here......................................................Just > Kidding, but > I appreciate any help I can get...for FREE that is... > > Regards, > > Chandika --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
