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