CXF Wsdl2java generate Java code for client use

Source: Internet
Author: User
Tags wsdl

CXF Wsdl2java generate Java code for client use

Environment configuration:
1. Download apache-cxf-2.6.2 Configure Cxf_home value to E:\gavin\cxf\apache-cxf-3.0.0 in the environment variable, add%cxf_home%\bin in Path
2. Enter cmd into the control window and enter Wsdl2java to see if the configuration is successful.
3, refer to its documentation to see the use of the tool's specific parameters

Wsdl2java usage:
Wsdl2java-p com-d Src-all 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.

Example: Wsdl2java-p com-d d:/src-client http://10.10.106.111:8090/webservice_cxf_spring/services/UserService?wsdl

Java code can be copied directly to the client after the use of the client, can also be called into a jar package (recommended)

Go to: http://www.360doc.com/content/14/0317/10/10505709_361231734.shtml

CXF Wsdl2java generate Java code for client use

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.