Using CXF to generate a client-side code command for a WSDL file

Source: Internet
Author: User
Tags wsdl

1. Download the CXF package firsthttp://cxf.apache.org/download.html, now CXF bag. (Download resources will be available)
2. Unpack the package and go to the bin directory via the cmd command (the path of the CD Cxf\bin)


CXF Generating Client code
3. Using the Wsdl2java command to generate the client codeExecute wsdl2java-p org.logink.ws-d f:\logink\src-all E:\wsdl3.1-credit\LogisticsCreditService\ at the command line logisticscreditservice.wsdl

Wsdl2java usage:
Wsdl2java-p com-d Src-all aa.wsdl
-p Specifies the namespace of its WSDL, which is the package name to generate code for:
-d Specifies the directory where the code is to be generated
-client generating the code for the Client test Web service
-server The build server starts the code for the Web service
-impl Generating the implementation code for a Web service
-ant Generating Build.xml files
-all generates all start endpoint codes: Types,service Proxy,,service interface, server mainline, client mainline, implementation object, and an an T build.xml file.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Using CXF to generate a client-side code command for a WSDL file

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.