WebService调用错误合集

 Java.Lang.NoClassDefFoundError: Org/Apache/Commons/Discovery/Tools/DiscoverSingleton

调用接口出错,

一个简单的WebService

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;

首先必不可少的axis.jar

此时还不够,还需要:

出现次异常,

1.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton

则是缺少commons-discovery-0.2.jar

2.Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException

则是没有加入saaj.jar 包,

3.Exception in thread "main" java.lang.NoClassDefFoundError: javax/wsdl/extensions/mime/MIMEContent
则是没有加如wsdl4j.jar,

你可能感兴趣的:(webservice)