Topic: [求助]Missing xsi:type |
Print this page |
1.[求助]Missing xsi:type | Copy to clipboard |
Posted by: aweisw Posted on: 2006-08-22 17:14 我用的是xfire1.1.2...... 有个WebService 方法 public A getA() 当我运行客户端的时候 报错 Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Missing 'xsi:type' attribute value org.codehaus.xfire.fault.XFireFault: Missing 'xsi:type' attribute value at org.codehaus.xfire.aegis.type.basic.ObjectType.readObject(ObjectType.java:86) at org.codehaus.xfire.aegis.type.collection.CollectionType.readObject(CollectionType.java:43) at org.codehaus.xfire.aegis.type.basic.BeanType.readObject(BeanType.java:92) at org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:157) at org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:179) at org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:50) at org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:39) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:97) at org.codehaus.xfire.client.Client.onReceive(Client.java:292) at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:105) at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:76) at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:25) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:97) at org.codehaus.xfire.client.Client.invoke(Client.java:232) at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77) at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57) 请问我怎样才能不missing xsi:type PS:如果我用WsGen生成client则没有这问题... 现在用的是这段代码: Service serviceModel = new ObjectServiceFactory().create(MyInterface.class); service = (MyInterface)new XFireProxyFactory().create(serviceModel, "http://localhost/infoservice"); 谢谢! |
2.Re:[求助]Missing xsi:type [Re: aweisw] | Copy to clipboard |
Posted by: aweisw Posted on: 2006-09-27 10:00 客户端和服务端xfire的版本要一致 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |