Axis2 WebService Development (2)

Source: Internet
Author: User

 

To do their best, you must first sharpen your tools.

Select axis2 to generate the server and client.

First install the axis2 plug-in of myeclipse or eclipse. If you use other tools, you can find out if there are any better tools.

 

1. Download The myeclipse axis2 plug-in

Http://archive.apache.org/dist/ws/axis2/tools/1_4_1/

Download axis2-eclipse-codegen-wizard.zipand axis2-eclipse-service-archiver-wizard.zip

Http://labs.xiaonei.com/apache-mirror/ws/axis2/1_5/axis2-1.5-war.zip

Download axis2-1.5-war.zip

2. Unzip the plug-in ($ eclipse_home indicates the myeclipse home directory you have installed)

Decompress the above two plug-ins to the $ eclipse_home \ eclipse \ plugins directory;

Axis2_codegen_wizard_1.3.0 and axis2_service_archiver_1.3.0

3. Add the file axis-eclipse-plugin.link in the $ eclipse_home \ eclipse \ links directory

Write Path = $ eclipse_home \ eclipse \ plugins (do not copy it directly !!)

4. Restart myeclipse. In file-> New-> other, the axis2 wizards is displayed. At this point, the axis2 plug-in has been installed successfully !! (Gxgx)

5. Try to generate a Java source file using the WSDL file! Is there an error? Yes ~ This is how things develop.

6.An error occurred while completing process-java.lang.reflect.InvocationTargetExceptionError. Well, don't worry ~ Solutions

The solution is as follows:
Step 1. Copy "geronimo-stax-api_1.0_spec-1.0.1.jar" and

"Backport-util-concurrent-3.1.jar" file to the lib directory of axis2_codegen_wizard_1.3.0, and modify the plug-in. xml file under axis2_codegen_wizard_1.3.0, 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

Of course, you can also download the updated version. If a problem occurs during the installation of the plug-in, the above solution has been provided. If the problem persists, you can check it online, I have successfully solved the problem by using the above method, and there is no problem with normal code generation.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.