The premise is that JDK and later are installed. In the command window, enter wsimport-D: \ WebService \-keep-verbose
Http: // 192.168.17.172: 8088/CRM/WS/recompenseonlineservice? WSDL
This is a command provided by JDK to generate WebService, which is very useful. You can enter wsimport to view more options.
C: \ Documents ents and Settings \ Administrator> wsimport
Missing wsdl_uri
Usage: wsimport [Options] <wsdl_uri>
Where [Options] include:
-B <path> specify jaxws/jaxb binding files or additional Schemas
(Each <path> must have its own-B)
-B <jaxboption> pass this option to jaxb schema Compiler
-Catalog <File> specify catalog file to resolve external entity references
Supports tr9401, xcatalog, and oasis xml catalog format.
-D <directory> specify where to place generated output files
-Extension allow vendor extensions-functionality not specified
By the specification. Use of extensions may
Result in applications that are not portable or
May not interoperate with other implementations
-Help display help
-HTTP Proxy: -Keep keep generated files
-P <PKG> specifies the target package
-Quiet suppress wsimport output
-S <directory> specify where to place generated source files
-Target <version> generate code as per the given jaxws Specification Version.
Version 2.0 will generate compliant code for jaxws 2.0 spec.
-Verbose output messages about what the compiler is doing
-Version print version information
-Wsdllocation <location> @ webserviceclient. wsdllocation Value
Examples:
Wsimport stock. WSDL-B stock. XML-B stock. xjb
Wsimport-D generated http://example.org/stock? WSDL