WebService 问题求指点

博主在学习WebService过程中遇到一个问题,尽管能访问到WSDL文件,但尝试调用接口时,收到SOAP Fault错误,错误信息显示为'No binding operation info while invoking unknown method with params unknown.'。控制台也显示出同样的错误,请求无绑定操作。源码和WSDL文件已提供,期待社区专家指导解决方案。
摘要由CSDN通过智能技术生成
本人这两天在学WebService.按照教学视频里的教程尝试做了一个最简单的Demo,但出现了一下问题。百思不得其解,在网上找了很久也没有找到答案。故此在这里发帖求各位大神指点下。


下面是问题描述:


照理说能访问到wsdl文件就说明web Service 已发布出去了,定义的接口也能调用,SOAP Request Envelope和SOAP Response Envelope应该是.xml格式的内容。但这里只有参数值跟返回结果。这是为何?求知道的大神指点下。

还有其他的错误信息,请看:
在浏览器上访问 http://localhost:8080/WebServiceDemo/services/HelloWorldImplPort 得到以下内容:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>
No binding operation info while invoking unknown method with params unknown.
</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>


此时,控制台错误信息:


三月 14, 2014 4:02:17 下午 org.apache.cxf.services.HelloWorldImplService.HelloWorldImplPort.HelloWorld
信息: Inbound Message
----------------------------
ID: 4
Address: http://localhost:8080/WebServiceDemo/services/HelloWorldImplPort
Http-Method: GET
Content-Type: 
Headers: {Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8], accept-encoding=[gzip,deflate,sdch], accept-language=[zh-CN,zh;q=0.8], cache-control=[max-age=0], connection=[keep-alive], Content-Type=[null], host=[localhost:8080], user-agent=[Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36]}
--------------------------------------
三月 14, 2014 4:02:17 下午 org.apache.cxf.service.invoker.AbstractInvoker invoke
严重: Invocation without a binding operation.
三月 14, 2014 4:02:17 下午 org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
警告: Interceptor for {http://com.shaobin.ji/}HelloWorldImplService has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: No binding operation info while invoking unknown method with params unknown.
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:59)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.a
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值