axis调用webservice的一个E异常解决方法

在使用Axis调用WebService时遇到一个错误,表现为找不到javax.activation.DataHandler和javax.mail.internet.MimeMultipart类,导致附件支持被禁用。接着在执行过程中抛出AxisFault,指出传递的参数数量(2)与addParameter方法中定义的IN/INOUT参数数量(1)不匹配。解决此问题需要检查并确保传入参数的数量和类型与WebService接口定义一致。
摘要由CSDN通过智能技术生成
警告: Unable to find required classes (javax.activation.DataHandler and javax.ma
il.internet.MimeMultipart). Attachment support is disabled.
Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: javax.xml.rpc.JAXRPCException: Number of parameters passed in (2)
doesn't match the number of IN/INOUT parameters (1) from the addParameter() call
s
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:javax.xml.rpc.JAXRPCException: N
umber of parameters passed in (2) doesn't match the number of IN/INOUT parameter
s (1) from the addParameter() calls
at org.apache.axis.client.Call.getParamList(Call.java:2042)
at org.apache.axis.client.Call.invoke(Call.java:2345)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at axisexercise.AXISTest.main(AXI
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值