锘??xml version="1.0" encoding="utf-8" standalone="yes"?>电影一区二区三区久久免费观看,亚洲精品黑牛一区二区三区,最新国产精品视频http://www.aygfsteel.com/andyj2ee/category/851.htmljava tec skyzh-cnFri, 02 Mar 2007 05:13:55 GMTFri, 02 Mar 2007 05:13:55 GMT60jsp 璋冪敤webservice 瀹炰緥http://www.aygfsteel.com/andyj2ee/articles/1799.htmljava鍏夌幆java鍏夌幆Mon, 07 Mar 2005 07:52:00 GMThttp://www.aygfsteel.com/andyj2ee/articles/1799.htmlhttp://www.aygfsteel.com/andyj2ee/comments/1799.htmlhttp://www.aygfsteel.com/andyj2ee/articles/1799.html#Feedback3http://www.aygfsteel.com/andyj2ee/comments/commentRss/1799.htmlhttp://www.aygfsteel.com/andyj2ee/services/trackbacks/1799.html瀹夎Axis (Install Axis)

 

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_1
set AXIS_LIB=%AXIS_HOME%\lib
set 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;


How to use WSDL2Java

Given a WSDL file of a web service you can manually code a client based on your understanding of WSDL document or you can use a tool to do that for you. This is very handy when WSDL is very complex. Axis provides such tool. Here is the command that you can run on GoogleSeach.wsdl.

java org.apache.axis.wsdl.WSDL2Java --verbose GoogleSearch.wsdl

Make sure that you have axis.jar file in your classpath while executing this command, as that is where org.apache.axis.wsdl.WSDL2Java resides.

You will find a number of .java files generated in a subdirectory named GoogleSearch. These are the stub files or wrapper classes. The wrapper classes allow you to code in java data types and convert them transparently to XML.

鍦ㄧ綉涓奼oogle 涓涓湁鏁堢殑wsdl:
http://www.webservicex.com/stockquote.asmx?WSDL

鐢熸垚java 綾?/SPAN>錛?BR>D:\projects\test\webservice\src>java org.apache.axis.wsdl.WSDL2Java --verbose http://www.webservicex.com/stockquote.asmx?WSDL

Parsing XML file:  http://www.webservicex.com/stockquote.asmx?WSDL
Generating NET\webserviceX\www\StockQuote.java
Generating NET\webserviceX\www\StockQuoteLocator.java
Generating NET\webserviceX\www\StockQuoteSoap.java
Generating NET\webserviceX\www\StockQuoteSoapStub.java

寤虹珛宸ョ▼鍐?java test
import NET.webserviceX.www.StockQuoteLocator;
import NET.webserviceX.www.StockQuoteSoap;


/**
 * @author andy.zhang
 
*/

public class Test {
    
public static void main(String[] arg){
        StockQuoteLocator binding
=new StockQuoteLocator();
           
try {
                StockQuoteSoap port
=binding.getStockQuoteSoap();
                String str
=port.getQuote("IBM");
                System.
out.println(str);
           }

           
catch(Exception e){
           }

    }

}




榪愯嫻嬭瘯錛?BR>D:\projects\test\webservice\classes>java -classpath %classpath%;.;NET.webservice
X.www.*; Test

<StockQuotes>
    
<Stock>
        
<Symbol>IBM</Symbol>
        
<Last>92.37</Last>        
        
<Date>3/4/2005</Date>
        
<Time>4:00pm</Time>
        
<Change>-0.04</Change>
        
<Open>92.94</Open>
        
<High>93.18</High>
        
<Low>92.36</Low>
        
<Volume>4754000</Volume>
        
<MktCap>150.8B</MktCap>
        
<PreviousClose>92.41</PreviousClose>
        
<PercentageChange>-0.04%</PercentageChange>
        
<AnnRange>81.90 - 99.10</AnnRange>
        
<Earns>4.94</Earns>
        
<P-E>18.71</P-E>
        
<Name>INTL BUSINESS MAC</Name>
    
</Stock>
</StockQuotes>



D:\projects\test\webservice\classes>
鎴愬姛浜嗐傦細錛?BR>


榪欐牱錛屽氨瀹屾垚浜嗗.NET WebService绔殑璋冪敤銆?/SPAN>

(data filetype:mdb)




java鍏夌幆 2005-03-07 15:52 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 庆安县| 右玉县| 新宁县| 防城港市| 钟祥市| 通化市| 桓台县| 娱乐| 舞钢市| 堆龙德庆县| 永善县| 工布江达县| 兰西县| 抚远县| 威海市| 江孜县| 丹棱县| 东源县| 镇原县| 云南省| 共和县| 巴彦淖尔市| 逊克县| 手机| 辛集市| 德钦县| 区。| 湖北省| 内丘县| 泰安市| 江达县| 怀来县| 夏津县| 渭南市| 和平区| 兰溪市| 荥阳市| 绿春县| 曲松县| 开远市| 彰化市|