方法的参数是实体对象和你发布方没有关系,主要是在客户端那边生成客户端代码时多生成一个实体类罢了
action是你本地的应用,也是调用自己的impl来实现具体功能,你要提供功能给外界用,要发布的当然是bizimpl。
1,先下载cxf依赖包,引入到项目中 2,在web.xml中添加cxf配置: <servlet> <servlet-name>CXFService</servlet-name> <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>CXFService</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> 3,在项目中完成你要发布的service,包括接口和实现类 4,在src目录下建立applicationContext-cxf.xml,并放入以下内容: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> <import resource="classpath:META-INF/cxf/cxf.xml"/> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/> <jaxws:endpoint id="userWebService" bindingUri="http://schemas.xmlsoap.org/soap/" address="/webervice/userwebservice" implementor="com.ruijie.smp.thirdpartyadapter.webservice.impl.UserWebServiceImpl"> </jaxws:endpoint>
81,122
社区成员
341,744
社区内容
加载中
试试用AI创作助手写篇文章吧