本人这两天在学WebService.按照教学视频里的教程尝试做了一个最简单的Demo,但出现了一下问题。百思不得其解,在网上找了很久也没有找到答案。故此在这里发帖求各位大神指点下。
下面是问题描述:
照理说能访问到wsdl文件就说明web Service 已发布出去了,定义的接口也能调用,SOAP Request Envelope和SOAP Response Envelope应该是.xml格式的内容。但这里只有参数值跟返回结果。这是为何?求知道的大神指点下。
还有其他的错误信息,请看:
在浏览器上访问 http://localhost:8080/WebServiceDemo/services/HelloWorldImplPort 得到以下内容:
此时,控制台错误信息:
下面是问题描述:
照理说能访问到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