Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » WebService/XML/JSON/SOAP/SOA
» Web Services
打印话题 寄给朋友 订阅主题 |
作者 | [求助]Missing xsi:type |
aweisw
发贴: 8 积分: 0 |
于 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"); 谢谢! SWT Designer v1.2.3 Released! |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
15342 | [求助]Missing xsi:type | aweisw | 2001 | 2006-08-22 17:14 |
12759 | Re:[求助]Missing xsi:type | aweisw | 18 | 2006-09-27 10:00 |
已读帖子 新的帖子 被删除的帖子 |
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 |