高分!高手进!xfire报错:Not enough message parts were received for the operation!加分后重发

码工码工 2009-06-11 04:56:35
<?php
$wsdl = "http://localhost:8081/logAnaWebService/service/SayHello?wsdl";
$webserviceClient = new SoapClient($wsdl);

echo $webserviceClient->sayHello("kevoo");

?>

运行后返回Fatal error: Uncaught SoapFault exception: [soap:Client] Not enough message part
s were received for the operation

服务器端也报错了:
信息: Fault occurred!
org.codehaus.xfire.fault.XFireFault: Not enough message parts were received for the operation.
at org.codehaus.xfire.service.binding.ServiceInvocationHandler.fillInHolders
at org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
at org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
at org.codehaus.xfire.transport.http.XFireServletController.invoke(XFireServletController.java:304)
at org.codehaus.xfire.transport.http.XFireServletController.doService
at org.codehaus.xfire.transport.http.XFireServlet.doPost(XFireServlet.java:116)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)


谁知道这是为什么呢

一定结贴给分。


...全文
842 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
studying_ 2009-06-13
  • 打赏
  • 举报
回复
org.codehaus.xfire.fault.XFireFault: Not enough message parts were received for the operation.
at org.codehaus.xfire.service.binding.ServiceInvocationHandler.fillInHolders

用Xfire开发时,绑定(binding)ServiceInvocationHandler出问题了.
SunNDown 2009-06-13
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 SunNDown 的回复:]
引用楼主 kevoo 的帖子:
<?php
$wsdl = "http://localhost:8081/logAnaWebService/service/SayHello?wsdl";
$webserviceClient = new SoapClient($wsdl);

echo $webserviceClient->sayHello("kevoo");

?>

运行后返回Fatal error: Uncaught SoapFault exception: [soap:Client] Not enough message part
s were received for the operation

服务器端也报错了:
信息: Fault occurred!
org.codehaus.xf…
[/Quote]
是你的web服务的那个service.xml 笔误...
SunNDown 2009-06-13
  • 打赏
  • 举报
回复
[Quote=引用楼主 kevoo 的帖子:]
<?php
$wsdl = "http://localhost:8081/logAnaWebService/service/SayHello?wsdl";
$webserviceClient = new SoapClient($wsdl);

echo $webserviceClient->sayHello("kevoo");

?>

运行后返回Fatal error: Uncaught SoapFault exception: [soap:Client] Not enough message part
s were received for the operation

服务器端也报错了:
信息: Fault occurred!
org.codehaus.xfire.fault.XFireFault: No…
[/Quote]

web.xml看看写的对不? 上面类的对应关系看是否存在或正确!
没有昵称阿 2009-06-13
  • 打赏
  • 举报
回复
不会啊!帮顶!
shari2009 2009-06-13
  • 打赏
  • 举报
回复
没遇到过这种错误哦,帮顶了,不过现在用Xfire似乎很少了吧~

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧