Packaging
Next step in the process is to package the classes in a .aar (axis2 archive) and deploy it in Axis2. When the WSDL2Java tool generate the skeleton it will also generate the required data binding classes. These schema related classes are located in the schemaorg_apache_xmlbeans directory inside resources directory of the generated code.
Copy this to your class path, compile the skeleton and the supporting classes. In order to create the .aar file, let's create the following directory structure with the required files and then simply use jar command to package it.
das ist das Bild der Ordnerhierarchie:
ws.apache.org/axis2/1_0/images/userguide/DirectoryStructure.jpg
Go to the top level directory where you can find the class files for the above service (i.e. one level up on the directory structure shown above), then type the following command in a command line.
jar -cf Axis2SampleDocLitPortType.aar .
Deploying the service is just a matter of dropping the ".aar" in to "services" directory that can be found in the "\webapps\axis2\WEB-INF" of your servlet container, hence copy the "echo.aar" into the "services" directory. Once these steps are completed, please start the servlet container (if you have not already started) and check the link "Services" on the Home Page of Axis2 Web Application (
http://localhost:8080/axis2/index.jsp) and see whether the Axis2SampleDocLitPortType is deployed properly. If you can see the following output then you have successfully deployed Axis2SampleDocLitPortType on Axis2.