Axis2 uses wsdl2java to generate specific Java class code for WSDL

Source: Internet
Author: User

Java-cp c:/axis2-1.5/lib/activation-1.1.jar; C:/axis2-1.5/lib/axiom-api-1.2.8.jar; C:/axis2-1.5/lib/axiom-dom-1.2.8.jar; C:/axis2-1.5/lib/axiom-impl-1.2.8.jar; c:/axis2-1.5/lib/axis2-adb-1.5.jar; C:/axis2-1.5/lib/axis2-adb-codegen-1.5.jar; C:/axis2-1.5/lib/axis2-ant-plugin-1.5.jar; C:/axis2-1.5/lib/axis2-clustering-1.5.jar; C: /axis2-1.5/lib/axis2-codegen-1.5.jar; C:/axis2-1.5/lib/axis2-corba-1.5.jar; C:/Axi S2-1.5/lib/axis2-fastinfoset-1.5.jar; C:/axis2-1.5/lib/axis2-java2wsdl-1.5.jar; C:/axis2-1.5/lib/axis2-jaxbri-1.5.jar; C:/axis2-1.5/lib/axis2-jaxws-1.5.jar; C: /axis2-1.5/lib/axis2-jibx-1.5.jar; C:/axis2-1.5/lib/axis2-json-1.5.jar; C:/axis2-1.5/lib/axis2-kernel-1.5.jar; C:/axis2-1.5/lib/axis2-metadata-1.5.jar; C: /axis2-1.5/lib/axis2-mtompolicy-1.5.jar; C:/axis2-1.5/lib/axis2-saaj-1.5.jar; C:/axis2-1.5/lib/ax Is2-spring-1.5.jar; C:/axis2-1.5/lib/axis2-transport-http-1.5.jar; C:/axis2-1.5/lib/axis2-transport-local-1.5.jar; C:/axis2-1.5/lib/axis2-xmlbeans-1.5.jar; C:/axis2-1.5/lib/bcel-5.1.jar; C: /axis2-1.5/lib/commons-codec-1.3.jar; C:/axis2-1.5/lib/commons-fileupload-1.2.jar; C:/axis2-1.5/lib/commons-httpclient-3.1.jar; C:/axis2-1.5/lib/commons-io-1.4.jar; C: /axis2-1.5/lib/commons-lang-2.3.jar; C:/axis2-1.5/lib/ Commons-logging-1.1.1.jar; C:/axis2-1.5/lib/geronimo-annotation_1.0_spec-1.1.jar; C:/axis2-1.5/lib/geronimo-jaxws_2.1_spec-1.0.jar; C:/axis2-1.5/lib/geronimo-saaj_1.3_spec-1.0.1.jar; C:/axis2-1.5/lib/geronimo-stax-api_1.0_spec-1.0.1.jar; C: /axis2-1.5/lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar; C:/axis2-1.5/lib/httpcore-4.0.jar; C:/axis2-1.5/lib/jalopy-1.5rc3.jar; C:/axis2-1.5/lib/jaxb-api-2.1.jar; C:/axis 2-1.5/lib/jaxb-impl-2.1.7.jar; C:/axis2-1.5/lib/jaxb-xjc-2.1.7.jar; C:/axis2-1.5/lib/jaxen-1.1.1.jar; C:/axis2-1.5/lib/jettison-1.0-RC2.jar; C: /axis2-1.5/lib/jibx-bind-1.2.1.jar; C:/axis2-1.5/lib/jibx-run-1.2.1.jar; C:/axis2-1.5/lib/log4j-1.2.15.jar; C:/axis2-1.5/lib/mail-1.4.jar; C: /axis2-1.5/lib/mex-1.5.jar; C:/axis2-1.5/lib/neethi-2.0.4.jar; C:/axis2-1.5/lib/smack-3.0.4.jar; C:/axis2-1.5/lib/smackx-3.0.4. Jar; C:/axis2-1.5/lib/soapmonitor-1.5.jar; C:/axis2-1.5/lib/woden-api-1.0M8.jar; C:/axis2-1.5/lib/woden-impl-dom-1.0M8.jar; C:/axis2-1.5/lib/wsdl4j-1.6.2.jar; C: /axis2-1.5/lib/wstx-asl-3.2.4.jar; C:/axis2-1.5/lib/xalan-2.7.0.jar; C:/axis2-1.5/lib/xercesImpl-2.6.2.jar; C:/axis2-1.5/lib/xml-apis-1.3.02.jar; C: /axis2-1.5/lib/xmlbeans-2.3.0.jar; C:/axis2-1.5/lib/xml-resolver-1.2.jar; C:/axis2-1.5/lib/XmlSchema-1. 4.3.jar; org. Apache. axis2.wsdl. wsdl2java-Uri http: // 192.168.100.176: 8080/axis2/services/simpleservice? WSDL
Http: // localhost: 8080/axis2/services/Hello? WSDL

 

In the simplest way,-Uri specifies the WSDL File> wsdl2java-Uri currencyconvert. WSDL-D uses different data binding methods> wsdl2java-Uri currencyconvert. WSDL-D xmlbeans-a method for generating Asynchronization> wsdl2java-Uri currencyconvert. test Case> wsdl2java-Uri currencyconvert. WSDL-t... -P can specify the generated package,-O can specify the generated path, and-SS can generate the server.CodeWsdl2java-Uri .. /WSDL/currencyconvert. WSDL-o .. /gen_src-SS-SD-g-P Foo. bat is more complicated.-ns2p replaces the namespace. Separate multiple namespaces with commas (,) to separate wsdl2java-Uri .. /WSDL/currencyconvert. WSDL-o .. /WSDL/gen_src-SS-SD-g-p com. foo. bar-NS2 "http://www.xxx.yyy.com/zzz/v1.0" = com. foo. bar ,"
Command parameter description:
? -D is the directory where class files of the client execution class are generated?
? -S is used to generate the directory where the source files of the client execution class are stored?
? -P defines the package name of the generated class?

 

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.