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.