1. Download axis-1_1-src.tar
http://ws.apache.org/axis/
http://ws.apache.org/axis/download.cgi
2. unpack to d:/axis-1_1
3.配置系统环境变量Windows:set AXIS_HOME=D:\opensource\axis\axis-1_1set AXIS_LIB=%AXIS_HOME%\libset AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;%AXIS_LIB%\commons-logging.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saajjar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\wsdl4j.jar;
在网上google 一个有效的wsdl:http://www.webservicex.com/stockquote.asmx?WSDL
生成java 类:D:\projects\test\webservice\src>java org.apache.axis.wsdl.WSDL2Java --verbose http://www.webservicex.com/stockquote.asmx?WSDLParsing XML file: http://www.webservicex.com/stockquote.asmx?WSDLGenerating NET\webserviceX\www\StockQuote.javaGenerating NET\webserviceX\www\StockQuoteLocator.javaGenerating NET\webserviceX\www\StockQuoteSoap.javaGenerating NET\webserviceX\www\StockQuoteSoapStub.java建立工程写 java test
运行测试:D:\projects\test\webservice\classes>java -classpath %classpath%;.;NET.webserviceX.www.*; Test
这样,就完成了对.NET WebService端的调用。
(data filetype:mdb)