axis2 webservice客户端最少jar

axis2 webservice客户端基本jar

axiom-api-1.2.20

axiom-impl-1.2.20

axis2-adb-1.7.7

axis2-kernel-1.7.7

axis2-transport-http-1.7.7

axis2-transport-local-1.7.7

commons-codec-1.2

commons-httpclient-3.1

commons-logging-1.1.1

httpcore-4.4.4

neethi-3.0.3

stax2-api-3.1.1

woden-core-1.0M10

woodstox-core-asl-4.2.0

wsdl4j-1.6.2

xmlschema-core-2.2.1

 

简单实例

Stringurl="http://localhost:8080/axis2/services/MyWsdlServer?wsdl";
  try {
   RPCServiceClient serviceClient = new RPCServiceClient();
   EndpointReference trag = new EndpointReference(url);
   Options options=serviceClient.getOptions();
   options.setTo(trag);
   //options.setAction("urn:mytest2");
   QName qName= newQName("http://ws.apache.org/axis2","mytestXml");
   Object[] parameter = new Object[]{5};
   Class[] resultClass= new Class[]{String.class};
   Object[] object= serviceClient.invokeBlocking(qName,parameter,resultClass);
   //OMElement object =serviceClient.invokeBlocking(qName,args);
   System.out.println(object[0]);
   
  } catch (AxisFault e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }

各种类缺失对于的jar包:

java.lang.NoClassDefFoundError: org/apache/woden/WSDLException --->woden-core-1.0M10.jar

org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder  -->axis2-spring-1.6.1.jar
org.apache.axis2.transport.http.AxisServlet                          -->axis2-transport-http-1.6.1.jar
javax.wsdl.xml.WSDLLocator                                            -->wsdl4j-1.6.2.jar
org.apache.ws.commons.schema.resolver.URIResolver                      -->XmlSchema-1.4.7.jar
org.apache.axiom.om.OMNode                                            -->axiom-api-1.2.12.jar
org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory          -->axiom-impl-1.2.12.jar
org.apache.neethi.PolicyComponent                                     -->neethi-3.0.1.jar
org.apache.axis2.transport.local.LocalTransportSender                  -->axis2-transport-local-1.6.1.jar
org.apache.commons.httpclient.HttpException                           -->commons-httpclient-3.1.jar
javax.mail.internet.ParseException                                    -->mail-1.4.jar
org.apache.commons.fileupload.FileItemFactory                         -->commons-fileupload-1.2.jar
org.apache.woden.resolver.URIResolver                                 -->woden-api-1.0M9.jar
org.apache.axis2.jaxws.dispatchers.GenericProviderDispatcher           -->axis2-jaxws-1.6.1.jar
org.apache.commons.io.FileUtils                                       -->commons-io-1.4.jar
org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver                -->axis2-adb-1.6.1.jar
org.apache.axis2.rpc.client.RPCServiceClient                                                  -->axis2-adb-1.6.1.jar
org.apache.axis2.AxisFault        -->axis2-kernel-1.6.1.jar
org.apache.axis2.addressing.EndpointReference                                           -->axis2-kernel-1.6.1.jar
org.apache.axis2.client.Options                                                                         -->axis2-kernel-1.6.1.jar
org.apache.commons.logging.LogFactory                                                        -->commons-logging-1.1.1.jar
org.apache.axis2.transport.http.CommonsHTTPTransportSender                -->axis2-transport-http-1.6.1.jar
org.apache.http.HttpResponseFactory                                                               -->httpcore-4.0.jar
org.apache.commons.codec.DecoderException                                              -->commons-codec-1.3.jar

 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值