[Axis2 and eclipse Integrated Development Web Service series II] top-down mode, reverse generation of server through WSDL

Source: Internet
Author: User

Before starting this article, let's talk about the concepts of buttom-up (bottom-up) and top-down (top-down ).

This is two ways to develop WebService.

Bottom-up mode: first create a Java Bean or EJB, and then create a WSDL file and Web Service through the Web Services Template

Top-down mode: Create a wsdl file first. You can use the WSDL editor to create a web service and a corresponding Java class through Web Services.

The advantages of top-down are:

To prevent incompatibility between some specific data types in different languages, we recommend that you first define the WSDL interface, including input and output parameters, return values, and other data types. In this way, the server does not need to care about how the client is called or how the server is implemented.

The development procedure is as follows:

  1. Create a dynamic web project
  2. Create a new WSDL file under this project
  3. After step by step, you can draw the WSDL graphically
  4. Draw complete and save. Use WSDL to generate Web service.
    Create a web service and select "Top down Java Bean web service ". Select the newly produced WSDL

  5. Adjust the server type slider to "develop service"

6. After the Java code is generated along the way to next, modify the Java code ending with impl.

Related Article

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.