CXF Generate Java Client Webservice__web

Source: Internet
Author: User

First, to CXF official online download CXF client

Official Download URL:
Http://cxf.apache.org/download.html
What to download under Windows system:

Second, how to use

A, after the unpacked directory:

b, use the Win+r key to call out the running window:

c, input cmd command return pop-up command window ( Note: The CD command into the extracted client's Bin directory ) and then enter the following command:
Wsdl2java-p com.bimap -D d:/cxfdemo -client -encoding utf-8
-noaddressbinding http://xxxxx:8080/Interface/services/Service?wsdl

Instructions for use:
Refer to its documentation to see the usage of the tool's specific parameters
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 generates the code for the Client test Web service (-encoding utf-8 generates Chinese for UTF-8 encoding)
-server the code for the build server to start the Web service
-impl to generate Web service implementation code
-ant Generate Build.xml files
-all generates all start endpoint codes: Types,service Proxy,,service interface, server mainline, client mainline, implementation object, and an T build.xml file.

D, the generated Java code has a test with the client class:

There are already implemented methods of calling interfaces that can be used to test

E, the official website has the description document may refer to see other commands how to use

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.