本资料包含axis2资源包 可以用于自动生成webServices客户端 是比较新也是比较全的axis2包
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2009-10-19 11:54 axis2-1.5.1
目录 0 2009-10-19 11:54 axis2-1.5.1lib
文件 2730442 2009-10-08 15:31 axis2-1.5.1libxalan-2.7.0.jar
文件 854901 2009-10-10 16:19 axis2-1.5.1libjaxb-impl-2.1.7.jar
文件 89967 2009-10-08 16:31 axis2-1.5.1libjaxb-api-2.1.jar
文件 3126580 2009-10-10 16:20 axis2-1.5.1libjaxb-xjc-2.1.7.jar
文件 60686 2009-10-08 15:30 axis2-1.5.1libcommons-logging-1.1.1.jar
文件 54187 2009-10-10 16:20 axis2-1.5.1libjettison-1.0-RC2.jar
文件 408811 2009-10-10 16:20 axis2-1.5.1libjibx-bind-1.2.1.jar
文件 128550 2009-10-10 16:20 axis2-1.5.1libjibx-run-1.2.1.jar
文件 515920 2009-10-10 16:20 axis2-1.5.1libcel-5.1.jar
文件 143145 2009-10-08 15:31 axis2-1.5.1libxmlSchema-1.4.3.jar
文件 32900 2009-10-08 15:30 axis2-1.5.1lib
eethi-2.0.4.jar
文件 245780 2009-10-08 15:31 axis2-1.5.1libaxiom-api-1.2.8.jar
文件 226915 2009-10-08 15:31 axis2-1.5.1libjaxen-1.1.1.jar
文件 28804 2009-10-08 15:31 axis2-1.5.1libgeronimo-stax-api_1.0_spec-1.0.1.jar
文件 131352 2009-10-08 15:31 axis2-1.5.1libaxiom-impl-1.2.8.jar
文件 520092 2009-10-08 15:31 axis2-1.5.1libwstx-asl-3.2.4.jar
文件 148429 2009-10-08 15:31 axis2-1.5.1libwsdl4j-1.6.2.jar
文件 46725 2009-10-10 13:55 axis2-1.5.1libcommons-codec-1.3.jar
文件 12232 2009-10-10 16:20 axis2-1.5.1libgeronimo-annotation_1.0_spec-1.1.jar
文件 14611 2009-10-08 15:31 axis2-1.5.1libgeronimo-ws-metadata_2.0_spec-1.1.2.jar
文件 29445 2009-10-10 16:20 axis2-1.5.1libgeronimo-saaj_1.3_spec-1.0.1.jar
文件 47817 2009-10-10 16:20 axis2-1.5.1libgeronimo-jaxws_2.1_spec-1.0.jar
文件 194205 2009-10-10 16:19 axis2-1.5.1libxml-apis-1.3.02.jar
文件 1010675 2009-10-08 15:56 axis2-1.5.1libxercesImpl-2.6.2.jar
文件 305001 2009-10-08 15:31 axis2-1.5.1libcommons-httpclient-3.1.jar
文件 172914 2009-10-08 15:34 axis2-1.5.1libhttpcore-4.0.jar
文件 53082 2009-10-08 15:30 axis2-1.5.1libcommons-fileupload-1.2.jar
文件 149442 2009-10-08 15:31 axis2-1.5.1libwoden-api-1.0M8.jar
文件 225594 2009-10-08 15:31 axis2-1.5.1libwoden-impl-dom-1.0M8.jar
............此处省略679个文件信息
/*
* 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.1lib
文件 2730442 2009-10-08 15:31 axis2-1.5.1libxalan-2.7.0.jar
文件 854901 2009-10-10 16:19 axis2-1.5.1libjaxb-impl-2.1.7.jar
文件 89967 2009-10-08 16:31 axis2-1.5.1libjaxb-api-2.1.jar
文件 3126580 2009-10-10 16:20 axis2-1.5.1libjaxb-xjc-2.1.7.jar
文件 60686 2009-10-08 15:30 axis2-1.5.1libcommons-logging-1.1.1.jar
文件 54187 2009-10-10 16:20 axis2-1.5.1libjettison-1.0-RC2.jar
文件 408811 2009-10-10 16:20 axis2-1.5.1libjibx-bind-1.2.1.jar
文件 128550 2009-10-10 16:20 axis2-1.5.1libjibx-run-1.2.1.jar
文件 515920 2009-10-10 16:20 axis2-1.5.1libcel-5.1.jar
文件 143145 2009-10-08 15:31 axis2-1.5.1libxm
文件 32900 2009-10-08 15:30 axis2-1.5.1lib
eethi-2.0.4.jar
文件 245780 2009-10-08 15:31 axis2-1.5.1libaxiom-api-1.2.8.jar
文件 226915 2009-10-08 15:31 axis2-1.5.1libjaxen-1.1.1.jar
文件 28804 2009-10-08 15:31 axis2-1.5.1libgeronimo-stax-api_1.0_spec-1.0.1.jar
文件 131352 2009-10-08 15:31 axis2-1.5.1libaxiom-impl-1.2.8.jar
文件 520092 2009-10-08 15:31 axis2-1.5.1libwstx-asl-3.2.4.jar
文件 148429 2009-10-08 15:31 axis2-1.5.1libwsdl4j-1.6.2.jar
文件 46725 2009-10-10 13:55 axis2-1.5.1libcommons-codec-1.3.jar
文件 12232 2009-10-10 16:20 axis2-1.5.1libgeronimo-annotation_1.0_spec-1.1.jar
文件 14611 2009-10-08 15:31 axis2-1.5.1libgeronimo-ws-me
文件 29445 2009-10-10 16:20 axis2-1.5.1libgeronimo-saaj_1.3_spec-1.0.1.jar
文件 47817 2009-10-10 16:20 axis2-1.5.1libgeronimo-jaxws_2.1_spec-1.0.jar
文件 194205 2009-10-10 16:19 axis2-1.5.1libxm
文件 1010675 2009-10-08 15:56 axis2-1.5.1libxercesImpl-2.6.2.jar
文件 305001 2009-10-08 15:31 axis2-1.5.1libcommons-httpclient-3.1.jar
文件 172914 2009-10-08 15:34 axis2-1.5.1libhttpcore-4.0.jar
文件 53082 2009-10-08 15:30 axis2-1.5.1libcommons-fileupload-1.2.jar
文件 149442 2009-10-08 15:31 axis2-1.5.1libwoden-api-1.0M8.jar
文件 225594 2009-10-08 15:31 axis2-1.5.1libwoden-impl-dom-1.0M8.jar
............此处省略679个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)