MyEclipse + axis2-1.6.2 Development WebService

Source: Internet
Author: User

Due to the need to connect with external agencies to scan the payment needs, have to use Java to develop a Webservice+axis,java webservice or 8 years ago, when beginners Java has had contact, work has not been used. This article completes the development of webservice with the help of the Myeclipse10+axis2 plugin.

Development tools: Myeclipse10

MyEclipse plugin:

1:axis2-eclipse-codegen-wizard-1.4.zip

2:axis2-eclipse-service-archiver-wizard-1.4.zip

First configure the WebService parsing container in tomcat, download axis2-1.6.2

Note Download the two files of the red box separately


Note that Axis2.war is extracted from axis2-1.6.2-war.zip, placed in Tomcat WebApps, and then entered in the browser http://localhost:8080/axis2/Test Container is successful. (Note: The browser runs automatically extracts the war file to a folder Axis2 contains Axis2-web, Meta-inf, org, web-inf)

Next download the plugin for the AXIS2 that is packaged and called in MyEclipse 10:

1:axis2-eclipse-codegen-wizard-1.4.zip

2:axis2-eclipse-service-archiver-wizard-1.4.zip

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

Http://axis.apache.org/axis2/java/core/tools/index.html

After downloading the plugin, unzip it separately.

Place axis2-eclipse-codegen-wizard-1.4 and axis2-eclipse-service-archiver-wizard-1.4 under the Dropins folder in the MyEclipse 10 directory, Eclipse is under the Plugins folder.

Restart MyEclipse 10 Right-click Project will find new->other-> input Axis2 will find as

Description of the call succeeded, introduced: here Axis2 code generator to see that it is a wizard that generates code for the WebService file WSDL file

and Axis2 Service Archiver This is the wizard that makes Java classes webservice.

Getting Started: Create a new Java project and create a new class under it:

Right-click Project

Next: Pay special attention to that class File location should write the folder that generates class after you have just created a new project, that is, the address of the upper-level classes folder of the package name.

Next

Direct "Next"

Note here that if the published WebService is a linked database, you need to attach the dependency package of the linked database

Next

Next

Enter the WebService service name, and the class name (package name + class name) and click Load to select the method you want to generate next

The next step is to put the arr file that you generated into Tomcat in the WebService container

The Axis2 folder in Tomcat is automatically generated in WebApps and then the browser enters Http://localhost:8080/axis2/services/listServices

You will find that the Arr file under the Listserives folder will be parsed. Such a simple webservice is developed.

MyEclipse + axis2-1.6.2 Development WebService

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.