Eclipse + Apache Axis2 release SOAP WebService (iii) First program Hello Axis2 soap!

Source: Internet
Author: User
Tags soap wsdl

Because AXIS2 supports both soap and restful webservice development.

My goal is mostly restful, here's a simple example of a soap:

Original address: https://jingyan.baidu.com/article/4d58d5411cebdc9dd4e9c099.html

"Step" (because it is a small note, so it is very simple to write, do not understand the waste of time oh, there are many good examples online)

1. Create a dynamic WEB Project project with Eclipse

2, write the service-side method (is to create a simple package and Class), this class is used to publish some of the services, the class inside the method is the external interface method name.

My bag: com.sf.axis2.test

My class:wservicedemo1.

My method:wservicemethod1.

3, right-click on the project name-new--other--Select Web Service (note that Eclipse version requires Aixs service, can be viewed through windows--properties--web service)

4. In service implementation, select the class you just created Com.sf.axis2.test.WServiceDemo1 as an interface for external publishing (do not select public and monitor, direct finish)

5, after completion will automatically create a file WSDL file, open the WSDL file, you can see the WSDL external address (location tag position). After you start the project on Tomcat, open the address in the browser (followed by the WSDL to open the description to create the success)

Eclipse + Apache Axis2 release SOAP WebService (iii) First program Hello Axis2 soap!

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.