Java is installed on the WCF axis2-eclipse-codegen-wizard and axis2-eclipse-service-archiver-wizard plug-ins

Source: Internet
Author: User
Preparations for building the communication environment between WCF and Java:

1. Download the installation package (http://axis.apache.org/axis2/java/core/download.cgi#a1_4_1) axis2-1.4.1, do not download the latest version (Latest Version 1.6.x ).


2. Download eclipse plugin axis2-eclipse-codegen-wizard and axis2-eclipse-service-archiver-wizard

3. preparations have been completed.

Install plug-ins:

1. Unzip the axis2-eclipse-codegen-wizard and axis2-eclipse-service-archiver-wizard to the dropins of Eclipse.

 

2. Unzip the axis2-1.4.1 to the axis2-1.4.1-bin \ axis2-1.4.1 \ lib directory to copy

The backport-util-concurrent-3.1.jar and geronimo-stax-api_1.0_spec-1.0.1.jar files go to the directory of eclipse \ dropins \ axis2_codegen_wizard_1.3.0 \ Lib.

 

3. Modify the file.

Go to the eclipse \ dropins \ axis2_codegen_wizard_1.3.0 directory and find the plugin. xml file.

Add the following code to the <runtime> label:

<Library name = "Library/geronimo-stax-api_1.0_spec-1.0.1.jar">


<Export name = "*"/>


</Library>


<Libraryname = "lib/backport-util-concurrent-3.1.jar">


<Export name = "*"/>


</Library>

This is the final result.

Check whether the axis plug-in is successfully installed.

Check whether the environment is set up successfully

1. Create a Java project in eclipse. (Such as testwcf)

2. Right-click the src directory and choose-à New-à other, as shown in:

Figure 1

WCF testing:

1. Service address: internal test address (http: // 192.168.111.235: 8734/turboartistservice /? WSDL)

Note: The address is not unique. If the server changes the service, you need to generate the address again.

2. Click Next in Figure 1.

Click Next

Click Next

Click Next

Perform operations according to the sequence marked in the figure. Click OK -----> finish

Refresh the project.

It means success.

In the last step, import the corresponding jar package.

Create a libs directory in testwcf, copy all jar files under axis2-1.4.1-bin \ axis2-1.4.1 \ Lib to the libs directory, and add references.

Related Article

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.