WebService

Notes on using WebService
1. Naming conventions,
otherwise , an exception may be reported Two classes have the same XML type

2. After publishing, get the address of the project
http://localhost:9798/dna_ws/CWCWService?wsdl
3.
E:\tools\apache- Find wsdl2java.bat in cxf-2.3.3\bin, open
it @setlocal set JAVA_HOME=E:\tools\jdk1.7
4. In
the cmd window, go to the directory where wsdl2java.bat is located and
execute wsdl2java http://localhost: 9798/dna_ws/CWCWService?wsdl
5.
Copy the code generated in the bin directory to the project
6. You
can use the local client

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326348401&siteId=291194637