I've been working on several webservices for several days now, and I've
got to the point that I feel that I got the basics so far.
My operations are running, the client application works and messages are
properly handled on both points (client-server).
My compilation process now exists of a simple batch file (windows) which:
- sets the classpath (adding some axis2 jars)
- compile the java files
- in a dir containing the META-INF/services.xml and the classes, run jar
to create an .aar file
This worked so far, but now I'd like to get my environment setup
properly, either using Ant (build.xml) or Maven2 (pom.xml).
I prefer Maven2, since my other projects depend on Maven2 too.
My current dir structure is this:
\
\build\META-INF\services.xml
\build\**\*.class (this is the compilation targetdir)
\src\**\*.java
\web\index.jsp
\web\WEB-INF\web.xml
I hope this email won't get too long, but I'm gonna ask my questions
anyway.
Feel free to answer them all, or just one of them. Any help is welcome.
1. What would be a good directory structure (+pom.xml) if I were to use
Maven2?
2. What's the best way to create a good WSDL in this process? Depend on
Axis2 generating it (operation?wsdl) or write it myself.
3. Where do I put this WSDL file in the dir structure?
4. How can I handle the .jar dependencies properly?
5. Does anyone have a good pom.xml that is able to:
- compile
- package it the right way (.classes, services.xml, any extra info
needed) to an .aar
Thanks!