我使用axis调用
Call call = (Call) service.createCall();
call.setOperationName("方法名");
在调用webservice服务端的时候报错
Unexpected wrapper element 方法名 found.
Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Unexpected wrapper element 方法名found. Expected {http://xx.com/} 方法名
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:Unexpected wrapper element 方法名 found. Expected {http://xx.com/} 方法名
修改成如下
Call call = (Call) service.createCall();
call.setOperationName(new QName("命名空间地址", "方法名"));