1. wsimport 了一个wsdl 搞下来了一堆类放在了项目中
2. 导了axis 1.4的一堆包到项目中
3.
TestClass tc=new TestClass();
String endpoint="http://10.10.66.124/testServer/testCollector.asmx";
String method="testMethod";
Service service=new Service();
Call call=(Call)service.createCall();
call.setTargetEndpointAddress(new java.net.URL(endpoint));
call.setOperation(method);
List<TestClass> tcs=new ArrayList<TestClass>();
tcs.add(tc);
call.invoke(new Object[tcs]);然后就报错了:AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.io.IOException: No serializer found for class com.test.TestClass in registry org.apache.axis.encoding.TypeMappingDelegate@a6d51e
......等等一堆错吧 = =
提供的方法应该是这样的 void testMethod(List<TestClass> ttt);
2. 导了axis 1.4的一堆包到项目中
3.
TestClass tc=new TestClass();
String endpoint="http://10.10.66.124/testServer/testCollector.asmx";
String method="testMethod";
Service service=new Service();
Call call=(Call)service.createCall();
call.setTargetEndpointAddress(new java.net.URL(endpoint));
call.setOperation(method);
List<TestClass> tcs=new ArrayList<TestClass>();
tcs.add(tc);
call.invoke(new Object[tcs]);然后就报错了:AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.io.IOException: No serializer found for class com.test.TestClass in registry org.apache.axis.encoding.TypeMappingDelegate@a6d51e
......等等一堆错吧 = =
提供的方法应该是这样的 void testMethod(List<TestClass> ttt);
解决方案 »
- FckEditor 导入Word,并且上传到服务器
- java 唤醒休眠
- struts2.0后台验证中数字类型转换错误
- netbean开发j2ee需要安装什么,如何配置?
- 研究生选哪个方向好?主要是干什么?
- Struts Validator客户端验证问题?
- 救命!就我一命3,我把我的仅仅有的60分都给了!虽然少了些!但是救命要紧!!再线等你“献血“!!
- 哪位大侠能告诉我怎样把java程序做成exe的啊????
- 关于EntityBean的部署,一个项目中往往会产生很多EntityBean如果一个一个部署的话,工作量太大,而且如果更改了Bean的结构,还要删掉旧的
- EJB这么火,决定开始学习,请各位大牛指教,初学该看什么书?
- tomcat发布web项目 报ip地址非法 求解决
- 在线等 jdbc连接数据库错误
2、对于自定义对象作为参数需要在wsdd文件中配置类型映射如
<typeMapping qname="Person" type="java:com.sl.Person"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />