Hi there,
I am quite new to the world of WS and Axis 2 and am sorry if my questions seems a bit silly. However, I looked for answers in your forums and documentation and didn't find them. I wrote my first WS using Axis2. Started from a WSDL file and generated the server code. Now, as far as I understand from your manual, I am suppose to do the following: 1. Write the business logic (in the MyServiceSkeleton.java file) 2. Build the WS 3. Copy the generated AAR file into the services directory of my axis2 server 4. Create the axis2.WAR file using "ant create.war" 5. Copy thr genearetd axis2.WAR from the dist directory into my tomcat server webapp directory. I followed the above steps and it works (I tested my service with SOAPUI as the client). I have some questions: 1. Is there an easier way to do the above steps in a production environment? Can I somehow generate the war file to be used in tomcat in a simpler way? At the moment, every time I change the business logic I have to redo all these steps... 2. Can I deploy the service without the "axis2/services/" prefix in the URL? The service is to be deployed to a client, and thus I prefer it to have a "clean" URL. At the moment it is "http://localhost:8080/axis2/services/MyService". Can I deploy it to be "http://localhost:8080/MyService"? 3. I noticed that there is no complete validation of the SOAP request (i.e. no check that the XML passed is correct according to the schema described in the WSDL). Where should I add this kind of validation? Is there any automatic methods that I need to call? I assume the answer is somewhere in the "MyServiceMessageReceiverInOut.java file" - I am just really not sure how to approach this file. I read some about handlers - is this the right way to perform validation? Thank you very much for your help - it is much appreciated! Best, Oded [email protected]
