Generating server-side code from a WSDL file

Source: Internet
Author: User
Tags wsdl

http://hi.baidu.com/cicon/item/9b7dd6e1a139b6b52e140b5f


generate a server-side implementation framework based on WSDL

In general, we use Web Services to provide WSDL information from the server side to generate the client's invocation framework, but not necessarily, for example, the communication between the two sides to define a good agreement, that is, the most recent determination of the WSDL, For example, the 1.6 version of the mobile Misc platform, the dsmp.wsdl we get from the move now have to build the implementation framework of the server in accordance with DSMP.WSDL, which means that we are calling the Misc platform as a service to the Web service, which is a bit different from what I said in the previous two articles, which is different from the starting point. We can use the following command to build the implementation framework of the server, note the Red boldface place {axis-lib}, need axis jar package, here is write your jar package path java-djava.ext.dirs= {axis-lib} org.apache.axis.wsdl.WSDL2Java --server-side dsmp.wsdl

The server-side files that axis will generate for us

Completing the class completes the service-side deployment of the Web service by copying the service section in DEPLOY.WSDD to the corresponding location in the SERVER-CONFIG.WSDD file. Of course, you can also use axis's tools to deploy Web services,
Java org.apache.axis.client.AdminClient DEPLOY.WSDD
You can access the service with Http://localhost:8080/axis/service/maPort.

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.