问题1:
service服务启动成功(应该算成功一直再转);
wsdl文档也能拿到
client端访问这个服务的时候client端报错:Could not find conduit initiator for address: http://localhost:8080/ws/hello?wsdl and transport: http://schemas.xmlsoap.org/soap/http
同时service端也报错:No binding operation info while invoking unknown method with params unknown.
解决办法:
总算是解决了,看了几个小时垃圾博客——最后发现是版本问题
<dependencies>
<!-- CXF WS开发 -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>3.0.1</version>
</dependency>
在客户端添加两个依赖就行
<properties>
<cxf.version>3.0.1</cxf.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>${cxf.version}</version>
</dependency>
<!-- Jetty is needed if you're are not using the CXFServlet -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http-jetty</artifactId>
<version>${cxf.version}</version>
</dependency>
<!-- CXF WS开发 -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${cxf.version}</version>
</dependency>