Use axis to generate Java class commands for WSDL

Source: Internet
Author: User
Tags wsdl
[Java writes a memo to the WSDL call]

Download the axis. jar package
Java-classpath ".; commons-logging-1.0.4.jar; axis. jar; commons-discovery-0.2.jar; jaxrpc. jar, wsdl4j-1.5.1.jar, SAAJ. jar; activation. jar; mail. jar "org. apache. axis. WSDL. wsdl2java-o "abcdefg" http: // localhost: 4391/website2/service. asmx? WSDL

Parameter description:
-O is the input directory

Generated file:

[Service name]. Java
[Service name] locator. Java
[Service name] Soap. Java
[Service name] soapstub. Java

Call description:
[Service name] AA = new [service name] Locator (); // create an object
[Service name] Soap soap = adcinterface. Get [service name] soap ();
Soap. ADC [service name] (parameter );

For example:
Adcinterfaceforsi adcinterface = new adcinterfaceforsilocator ();
Adcinterfaceforsisoap soap = adcinterface. getadcinterfaceforsisoap ();
Adcsiresponse sires = soap. adcsiinterface (sireq );
System. Out. println (sires. getsvccont ());

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.