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