MyEclipse +axis2 1.62 Development WebService

Source: Internet
Author: User

Because of the temporary requirements, we have to use Java to develop a webservice, before the Java WebService a blank. Temporary search information, the cost of nearly a day, finally fix, efficiency is slow point. Oh.

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

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

Or you can go to http://axis.apache.org/axis2/java/core/tools/index.html.

After the plugin download, respectively, after the decompression remember: Put axis2-eclipse-codegen-wizard-1.4 and axis2-eclipse-service-archiver-wizard-1.4 to MyEclipse 10 Under the Dropins folder in your 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: Any new class:

Right-click Project

Next: Special note that the class File location should be written on your new project after the creation of a class folder, that is, the address of the first level classes folder of the package name, landlord in this delay nearly half an hour, ashamed Ah,

Next

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

Select the method you want to build 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. Here we go.

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.