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