Use the wsimport command to generate a WebService File

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.