Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » WebService/XML/JSON/SOAP/SOA » Web Services  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 [求助]Missing xsi:type
aweisw





发贴: 8
积分: 0
于 2006-08-22 17:14 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我用的是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");

谢谢!




话题树型展开
人气 标题 作者 字数 发贴时间
13112 [求助]Missing xsi:type aweisw 2001 2006-08-22 17:14
10654 Re:[求助]Missing xsi:type aweisw 18 2006-09-27 10:00

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2020 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号
客服电话 0592-8750026    客服信箱 714923@qq.com    客服QQ 714923