Open eclipse,run--> Run configurations and enter Wsdl2java in the main class box to search, provided your project has joined Axis's jar package, Will search to Org.apache.axis.wsdl.WSDL2Java, enter parameters in the Arguments tab bar, default base directory is the current project, the parameters are as follows:src\\cfg\\test.wsdl-p com.xxx.xxx.xxx.client-tThis is the case of the WSDL file locally, if it is not a local WSDL file, but instead the URL way (for example: http://xxx:8080/xxx/xxx/xxx?wsdl), then enter: Http://xxx:8080/xxx/xxx/xxx? Wsdl-p Com.xxx.xxx.xxx.client-t This is relatively simple to generate the client code parameters, run on can, refresh the project, will be the same as the SRC peers in the place of the com.test.outsys.prod.client before the package name is set, Copy to SRC. Other parameters to use:-H,--help
Print this message and exit
-V,--verbose
Print Informational Messages
-N,--noimports
Only generate code for the immediate WSDL document
-O,--timeout <argument>
Timeout in seconds (default was, specify-1 to disable)
-D,--debug
Print debug information
-W,--nowrapped
Turn off support for "wrapped" document/literal
-Q,--quiet
Do not print any informational or debug messages (except Err
Ors
-S,--server-side
Emit server-side bindings for Web service
-S,--skeletondeploy <argument>
Deploy skeleton (true) or implementation (FALSE) in DEPLOY.W
Sdd. Default is false. Assumes--server-side.
-N,--nstopkg <argument>=<value>
Mapping of namespace to the package
-F,--filenstopkg <argument>
File of nstopkg mappings (default nstopkg.properties)
-P,--package <argument>
Override all namespace to package mappings
Name instead
-O,--output <argument>
Output directory for emitted files
-D,--deployscope <argument>
Add scope to DEPLOY.WSDD: "Application", "Request", "Session"
"
-T,--testcase
Emit JUnit TestCase class for Web service
-A,--all
Generate code for all elements, even unreferenced ones
-T,--typemappingversion <argument>
Indicate 1.1 or 1.2. The default is 1.1 (SOAP 1.1 jax-RPC C
Ompliant. 1.2 indicates SOAP 1.1 encoded.)
-F,--factory <argument>
Name of a custom class that implements Generatorfactory inte
Rface (for extending Java generation functions)
-H,--helpergen
Emits separate Helper classes for meta data
-B,--buildfile
Emit Ant buildfile for Web service
-U,--user <argument>
Username to access the Wsdl-uri
-P,--password <argument>
Password to access the Wsdl-uri
-X,--classpath
Additional classpath elements
-I,--nsinclude <argument>
Include namespace in generated code
-X,--nsexclude <argument>
Exclude namespace from generated code
-C,--implementationclassname <argument>
Custom name of Web service implementation
-U,--allowinvalidurl
Emit file even if WSDL endpoint URL is not a valid URL
-W,--wraparrays
Prefers building beans to straight arrays for wrapped XML ar
Ray types (defaults to OFF).
WebService using Wsdl2java to generate the client (simple and convenient operation)