Key Points of aixs2 wsdl2java

Source: Internet
Author: User
Tags soap

Axis2 is a common SOAP engine, but it provides a simple description of the wsdl2java command line tool, without specific examples. Below are several examples:
In the simplest way,-Uri specifies the WSDL File
> Wsdl2java-Uri currencyconvert. WSDL
-D use different data binding methods
> Wsdl2java-Uri currencyconvert. WSDL-D xmlbeans
-A: asynchronous Generation Method
> Wsdl2java-Uri currencyconvert. WSDL-
-T Generate Test Case
> Wsdl2java-Uri currencyconvert. WSDL-t...
-P can specify the generated package,-O specifies the generated path, and-SS generates the server code.
Wsdl2java-Uri ../WSDL/currencyconvert. WSDL-o ../gen_src-SS-SD-g-P Foo. bat
It is more complicated.-ns2p replaces the namespace, and multiple namespaces are separated by commas (,).
 
Wsdl2java-Uri ../WSDL/currencyconvert. WSDL-o ../WSDL/gen_src-SS-SD
-G-P com. Foo. Bar-ns2p
"Http://www.xxx.yyy.com/zzz/v1.0" = com. Foo. Bar, "http://www.xxx.yyy.com/ddd/v1.1" = com. Foo. Bar. Goo

 

Note:

-U-generated data binding class

-P specifies the export package name, but does not include the data binding class.

-Ns2p specifies the export package name to use the complete URL "http://www.xxx.yyy.com/zzz/v1.0" = com. Foo. Bar with quotation marks; Multiple conversions are separated by commas

 

 

Command description:

Usage: wsdl2java [Options]-Uri <URL or path>: a URL or path to a WSDL

Where [Options] include:
-O <path> specify a directory path for the generated code.
-A generate async style code only (default: off ).
-S generate sync style code only (default: Off). Takes P
Recedence over-.
-P <pkg1> specify a custom package name for the generated code.

-L <language> valid ages are Java and C (default: Java ).
-T generate a test case for the generated code.
-SS generate server side code (I. e. Skeletons) (default:
Off ).
-SD generate service Descriptor (I. e. Services. XML). (def
Ault: Off). Valid with-ss.
-D <databinding> valid databinding (s) are ADB, xmlbeans, jibx, jaxme
Nd jaxbri (default: ADB ).
-G generates all the classes. Valid only with-ss.
-PN <port_name> choose a specific port when there are multiple ports
In the WSDL.
-Sn <SERVICE_NAME> choose a specific service when there are multiple Ser
Vices in the WSDL.
-U unpacks the databinding classes
-R <path> specify a repository against which code is generated.

-Nss1 NS1 = pkg1, ns2specify a custom package name for each namespace spec
Ified in the wsdls schema.
-Ssi generate an interface for the service implementation
(Default: off ).
-WV <version> WSDL version. Valid options: 2, 2.0, 1.1
-S specify a directory path for generated Source
-R specify a directory path for generated resources
-Em specify an external Mapping File
-F flattens the generated files
-UW switch on UN-wrapping.
-Xsdconfig <file path> Use xmlbeans. xsdconfig file. Valid only with-D xmlb
Eans.
-AP generate code for all ports
-Or overwrite the existing classes
-B generate axis 1.x Backword compatible code.
-SP suppress namespace prefixes (optimzation that reduces
Size of SOAP request/response)
-E <key> <value> extra configuration options specific to certain datab
Indings. Examples:
-Ebindingfile <path> (for jibx)-S
Pecify the file path for the binding File
-Etypesystemname <my_type_system_name> (for xmlbeans)
-Override the randomly generated type system name
-EMP <package name> (for ADB)-extension mapper pack
Age name
-Eosv (for ADB)-off strict validation.
-- Nobuildxml dont generate the build. XML in the output directory
-- Nowsdl dont generate wsdls in the Resources Directory
-- Nomessagereceiver dont generate a messagereceiver in the generated sour
CES

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.