資源簡介
本資料包含axis2資源包 可以用于自動生成webServices客戶端 是比較新也是比較全的axis2包
代碼片段和文件信息
/*
?*?Licensed?to?the?Apache?Software?Foundation?(ASF)?under?one
?*?or?more?contributor?license?agreements.?See?the?NOTICE?file
?*?distributed?with?this?work?for?additional?information
?*?regarding?copyright?ownership.?The?ASF?licenses?this?file
?*?to?you?under?the?Apache?License?Version?2.0?(the
?*?“License“);?you?may?not?use?this?file?except?in?compliance
?*?with?the?License.?You?may?obtain?a?copy?of?the?License?at
?*
?*?http://www.apache.org/licenses/LICENSE-2.0
?*
?*?Unless?required?by?applicable?law?or?agreed?to?in?writing
?*?software?distributed?under?the?License?is?distributed?on?an
?*?“AS?IS“?BASIS?WITHOUT?WARRANTIES?OR?CONDITIONS?OF?ANY
?*?KIND?either?express?or?implied.?See?the?License?for?the
?*?specific?language?governing?permissions?and?limitations
?*?under?the?License.
?*/
package?samples.databinding;
import?org.apache.axiom.om.OMElement;
import?org.apache.axiom.om.impl.builder.SAXOMBuilder;
import?org.exolab.castor.xml.Marshaller;
import?org.exolab.castor.xml.UnmarshalHandler;
import?org.exolab.castor.xml.Unmarshaller;
import?org.xml.sax.ContentHandler;
import?org.xml.sax.SAXException;
import?samples.databinding.data.GetStockQuote;
import?samples.databinding.data.GetStockQuoteResponse;
import?javax.xml.transform.TransformerException;
import?javax.xml.transform.TransformerFactory;
import?javax.xml.transform.sax.SAXResult;
import?javanet.staxutils.StAXSource;
public?final?class?StockClient?{
????public?static?void?main(String[]?args)?throws?Exception?{
????????if?(args.length?!=?2)?{
????????????System.err.println(“Usage:?StockClient??“);
????????????return;
????????}
????????final?String?url?=?args[0];
????????final?String?symbol?=?args[1];
????????System.out.println();
????????System.out.println(“Getting?Stock?Quote?for?“?+?symbol);
????????StockQuoteServiceStub?stub?=
????????????????new?StockQuoteServiceStub(url);
????????stub._getServiceClient().getOptions().setAction(“getStockQuote“);
????????GetStockQuote?stockQuote?=?new?GetStockQuote();
????????stockQuote.setSymbol(symbol);
????????SAXOMBuilder?builder?=?new?SAXOMBuilder();
????????Marshaller.marshal(stockQuote?builder);
????????OMElement?response?=?stub.getStockQuote(
????????????????builder.getRootElement());
????????StAXSource?staxSource?=
????????????????new?StAXSource(response.getxmlStreamReader());
????????Unmarshaller?unmarshaller?=?new?Unmarshaller(GetStockQuoteResponse.class);
????????UnmarshalHandler?unmarshalHandler?=?unmarshaller.createHandler();
????????GetStockQuoteResponse?stockQuoteResponse;
????????try?{
????????????ContentHandler?contentHandler?=?Unmarshaller.getContentHandler(unmarshalHandler);
????????????TransformerFactory.newInstance().newTransformer().transform(staxSource?new?SAXResult(contentHandler));
????????????stockQuoteResponse?=?(GetStockQuoteResponse)?unmarshalHandler.getobject();
????????}?catch?(SAXException?e)?{
????????????throw?new?RuntimeException(
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2009-10-19?11:54??axis2-1.5.1\
?????目錄???????????0??2009-10-19?11:54??axis2-1.5.1\lib\
?????文件?????2730442??2009-10-08?15:31??axis2-1.5.1\lib\xalan-2.7.0.jar
?????文件??????854901??2009-10-10?16:19??axis2-1.5.1\lib\jaxb-impl-2.1.7.jar
?????文件???????89967??2009-10-08?16:31??axis2-1.5.1\lib\jaxb-api-2.1.jar
?????文件?????3126580??2009-10-10?16:20??axis2-1.5.1\lib\jaxb-xjc-2.1.7.jar
?????文件???????60686??2009-10-08?15:30??axis2-1.5.1\lib\commons-logging-1.1.1.jar
?????文件???????54187??2009-10-10?16:20??axis2-1.5.1\lib\jettison-1.0-RC2.jar
?????文件??????408811??2009-10-10?16:20??axis2-1.5.1\lib\jibx-bind-1.2.1.jar
?????文件??????128550??2009-10-10?16:20??axis2-1.5.1\lib\jibx-run-1.2.1.jar
?????文件??????515920??2009-10-10?16:20??axis2-1.5.1\lib\bcel-5.1.jar
?????文件??????143145??2009-10-08?15:31??axis2-1.5.1\lib\xm
?????文件???????32900??2009-10-08?15:30??axis2-1.5.1\lib\neethi-2.0.4.jar
?????文件??????245780??2009-10-08?15:31??axis2-1.5.1\lib\axiom-api-1.2.8.jar
?????文件??????226915??2009-10-08?15:31??axis2-1.5.1\lib\jaxen-1.1.1.jar
?????文件???????28804??2009-10-08?15:31??axis2-1.5.1\lib\geronimo-stax-api_1.0_spec-1.0.1.jar
?????文件??????131352??2009-10-08?15:31??axis2-1.5.1\lib\axiom-impl-1.2.8.jar
?????文件??????520092??2009-10-08?15:31??axis2-1.5.1\lib\wstx-asl-3.2.4.jar
?????文件??????148429??2009-10-08?15:31??axis2-1.5.1\lib\wsdl4j-1.6.2.jar
?????文件???????46725??2009-10-10?13:55??axis2-1.5.1\lib\commons-codec-1.3.jar
?????文件???????12232??2009-10-10?16:20??axis2-1.5.1\lib\geronimo-annotation_1.0_spec-1.1.jar
?????文件???????14611??2009-10-08?15:31??axis2-1.5.1\lib\geronimo-ws-me
?????文件???????29445??2009-10-10?16:20??axis2-1.5.1\lib\geronimo-saaj_1.3_spec-1.0.1.jar
?????文件???????47817??2009-10-10?16:20??axis2-1.5.1\lib\geronimo-jaxws_2.1_spec-1.0.jar
?????文件??????194205??2009-10-10?16:19??axis2-1.5.1\lib\xm
?????文件?????1010675??2009-10-08?15:56??axis2-1.5.1\lib\xercesImpl-2.6.2.jar
?????文件??????305001??2009-10-08?15:31??axis2-1.5.1\lib\commons-httpclient-3.1.jar
?????文件??????172914??2009-10-08?15:34??axis2-1.5.1\lib\httpcore-4.0.jar
?????文件???????53082??2009-10-08?15:30??axis2-1.5.1\lib\commons-fileupload-1.2.jar
?????文件??????149442??2009-10-08?15:31??axis2-1.5.1\lib\woden-api-1.0M8.jar
?????文件??????225594??2009-10-08?15:31??axis2-1.5.1\lib\woden-impl-dom-1.0M8.jar
............此處省略679個文件信息
- 上一篇:nodejs實戰pdf 源碼.zip
- 下一篇:virtuallab使用說明
評論
共有 條評論