1. cxf: http://cxf.apache.org/download.html, download apache-cxf-2.7.0.zip (currently the latest), decompress, in the bin directory (such as: D: \ apache-cxf-2.7.0 \ bin) run the command:
Wsdl2java-d: \ SRC http: // localhost: 8080/projectname/WebService? WSDL
The client code is generated under the D: \ src directory. The WSDL path can also be a saved WSDL-type file.
2. Explanation of some wsdl2java commands:
Wsdl2java-P Src-D Src-all test. WSDL
-P specifies the WSDL namespace, that is, the package name of the Code to be generated-D specifies the directory where the code to be generated is located. This parameter is not set, generate in the current directory-client generation client test Web Service Code-server generation server start Web Service Code-impl generate Web service implementation code-ant generate build. XML file-All generates all the starting endpoint code: types, Service proxy, service interface, server mainline, client mainline, implementation object, and an ant build. XML file. more can refer to: http://cwiki.apache.org/CXF20DOC/wsdl-to-java.html 3. address: cxf: http://cxf.apache.org/
Web Service:
Http://www.w3school.com.cn/webservices/index.asp
WSDL: http://www.w3school.com.cn/wsdl/index.asp soap: http://www.w3school.com.cn/soap/index.asp