Axis of Web Service (ii)

Source: Internet
Author: User
Tags wsdl

Click the Admin this link, you can see to enter the user name and password, user name and password in tomcat_home\webapps\axis2\web-inf\conf under the axis2.xml can be found
<parameter name= "UserName" >admin</parameter> <parameter name= "password" >axis2</parameter>

Upload service is, of course, uploading AAR files and completing the release of WebService tools.
Available Service is to view the currently published service details
Available service groups is a service group
Global chains is a globally available chain
Operation specific chains is a specific operation of the chain
Deactivate Service is canceling a service
The Activate service is re-published with the canceled service
Edit parameters is the parameter that modifies the WebService class.

We use the Upload service tool here, and then choose the Axis2 tool that we used to generate the AAR file.

-----------------------》

In fact, we can copy the Myservice.aar file directly to the directory of tomcat-home\webapps\axis2\web-inf\services in this step.

Then click on the available service to see the MyService service.

Now we're going to use the Axis2 tool to generate the WSDL file.

1, click Workspace, right button new select other. Then select the Client code generation tool

2. Click Next and you can see that you have chosen WSDL. Select the second (generate a WSDL file from Java code) and click on Next


4. Click Next to continue to the next step, you can see the WebService name and namespace that will be released


5, continue next, select the WSDL file to save the directory so the services.wsdl file is generated.

generate the code for the client call with the Axis2 tool


1, right workspace, click New to select Other, and then select the Aixs2 Generate Code tool


2, select the first item, generate Java code according to the WSDL file, then next


3. Then select the WSDL file that you just created above.

4. Click Next to see the option to generate the code for the specified method.

Note that when selecting PortName, different options will produce different calling codes. They are also slightly different in the way they are invoked. But you can look at the generated source code for a detailed understanding.

5, click Next, select the code output saved directory, and then click Finish to refresh the directory found 2 more folders and an. xml file

But I don't know how to write the test section code

Axis of Web Service (ii)

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.