Call call = new Call(new Service());通过call.invoke(new Object[]{vo});发送数据,报nested exception is:
java.io.IOException: No serializer found for class
call.addHeader(soapHeaderElement);
call.setSOAPActionURI("");
call.setOperationName(new QName("http://com", "ger"));
// 设置service所在URL
call.setTargetEndpointAddress(url);
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);//设置返回类型
// 方法名(processService)与MyService.java方法名保持一致
// Object 数组封装了参数,参数为"This is Test!",调用processService(String arg)
call.addParameter("lead", org.apache.axis.encoding.XMLType.XSD_ANYTYPE,
javax.xml.rpc.ParameterMode.IN);//接口的参数
call.setEncodingStyle("http://.com");
String ret = (String) call.invoke(new Object[]{vo});
2022-09-11 17:46:40 [http-nio-8086-exec-1] [INFO] [AbstractController - 61] : ; nested exception is:
java.io.IOException: No serializer found for class .docking.LeadVo in registry org.apache.axis.encoding.TypeMappingDelegate@4ace8f9f
org.apache.axis.AxisFault: ; nested exception is:
java.io.IOException: No serializer found for class com..LeadVo in registry org.apache.axis.encoding.TypeMappingDelegate@4ace8f9f