Create and install
1. Download The axis2-eclipse-codegen-wizard (generate client code), axis2-eclipse-service-archiver-wizard (publish the WSDL file), decompress it to the corresponding folder under $ eclipse_home \ plugins (note the directory structure)
2. Delete the org. Eclipse. Update folder under $ eclipse_home \ configuration;
3. Start the EC and you can see the axis2_wizard option,
Installation is complete!
Possible problems
1,When the codegen plug-in is used to generate a Java code file from the WSDL, an error "An error occurred while completing process-java. Lang. Reflect. invocationtargetexception" occurs in the last step..
(Can code be generated with a http://www.webservicex.net/uklocation.asmx? WSDL test)
The solution is as follows:
Step 1. Copy the "geronimo-stax-api_1.0_spec-1.0.1.jar" and "backport-util-concurrent-3.1.jar" files from the axis2 lib Library to the lib directory of axis2_codegen_wizard_1.3.0, and modify the plug-in under axis2_codegen_wizard_1.3.0. XML file, add in <runtime>
<Library name = "Library/geronimo-stax-api_1.0_spec-1.0.1.jar">
<Export name = "*"/>
</Library>
<Library name = "Library/backport-util-concurrent-3.1.jar">
<Export name = "*"/>
</Library>
Go to the plugin. xml file and save it!
Step 2. Delete the axis2_codegen_wizard directory under $ workspace location \. Metadata \. plugins
Step 3. Switch to the $ eclipse_home directory under the command line, and then execute:
Eclipse-clear
Done!
2,
- Axis2-eclipse-service-archiver-wizard.zip (5.1 MB)
- Downloads: 201
- Axis2-eclipse-codegen-wizard.zip (8.9 MB)
- Downloads: 141
- Webservicetest.rar (2.1 MB)
- Description: WebService simple call code and axis-related jar packages. It has little to do with this article.
- Downloads: 192
1. Download The axis1.4 package
2. Set Environment Variables
3. Put the axis folder under the webapp downloaded under axis1.4 to your Tomcat webapp directory.
Don't ask why.
4. Create a web_project and create deploy. WSDD under the WEB-INF.
5. java-CP **-lhttp: // ** deploy. WSDD, but I tried it as if it was unsuccessful, So I directly used Java Org. apache. axis. client. adminclient-lhttp: // localhost: 8080/axis/services/adminservice deploy. in WSDD, deploy. WSDD files in D: \ Program Files \ Tomcat 6.0 \ webapps \ JWS \ WEB-INF
So cd d: \ Program Files \ Tomcat 6.0 \ webapps \ JWS \ WEB-INF
Run Java org. Apache. axis. Client. adminclient-lhttp: // localhost: 8080/axis/services/adminservice deploy. WSDD.
Now you go to Tomcat/webapp/axis and you will see an additional server-config.wsdd
Open the service and you will see several existing services, such as adminservice, which cannot be deleted; otherwise, an error is reported.
As for passing some complex objects, or common JavaBean, it is described in the example,
Add QQ 824785559 if you have any questions
- Axis-bin-1_4.tar.gz (7.7 Mb)
- Downloads: 160
- Jws.rar (2 MB)
- Downloads: 77
- Activation. Jar (55 KB)
- Downloads: 62
- Mail. Jar (483.4 KB)
- Downloads: 65