[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 ());