Spring使用CFX发布Webservice
来源:互联网 发布:网络安全保密基础知识 编辑:程序博客网 时间:2024/06/05 11:31
spring配置:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"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.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> <!-- Import apache CXF bean definition 固定--> <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" /> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"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.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> <!-- Import apache CXF bean definition 固定--> <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" /> <bean id="gpmsWebServiceService" class="com.haier.leg.contract.gpmscontract.service.impl.GpmsWebServiceImpl"/> <jaxws:server id="gpmsWebServiceServiceWs" serviceClass="com.haier.leg.contract.gpmscontract.service.GpmsWebServiceService" address="/gpmsqr"><jaxws:serviceBean> <ref bean="gpmsWebServiceService" /></jaxws:serviceBean></jaxws:server></beans>
service:
import javax.jws.WebService;/** * @ClassName: GpmsWebServiceService * @Description: TODO(GPMS二维码接口) * */@WebService(serviceName="GpmsWebServiceService")public interface GpmsWebServiceService {public byte[] getLegContractQRCode(String contractId);}
impl:
@WebService(endpointInterface="com.haier.leg.contract.gpmscontract.service.GpmsWebServiceService",serviceName="GpmsWebServiceService")public class GpmsWebServiceImpl implements GpmsWebServiceService{}
使用wsimport命令生成webservice客户端:
wsimport -keep -p com.haier.leg.contract.gpmscontract.service http://localhost:8089/leg/ws/gpmsqr?wsdl
0 0
- Spring使用CFX发布Webservice
- cfx发布webservice
- 使用HttpClient调用CFX WebService
- CFX构建webservice实例,与Spring整合
- cfx webservice
- CFX WebService做的一个简单的HelloWorld例子 也可与spring 整合 发布在容器里面
- webService快速入门入门系列《6》----cfx框架集成spring
- webservice cfx学习
- java webservice cfx
- WebService CFX 实现
- cfx webservice 入门步骤
- android webservice(cfx) 乱码
- cfx实现webService
- 使用cxf发布WebService(Spring)
- webservice 整合spring 使用接口发布服务
- 使用Spring + CXF 发布WebService服务
- cfx发布到weblogic
- WebService学习总结九 使用Spring发布WebService
- react组件间通信
- 002-Docker for Windows
- Python数据分析_Pandas
- [php扩展开发] -- 添加函数
- XML学习(一)-四种XML文件读取方式
- Spring使用CFX发布Webservice
- Linux命令的返回值
- mtk如何在源码中删除系统自带apk
- mvp模式下实现登录小dem
- shell编程【分发系统】
- android6.0创建新的文件夹
- Lambda表达式详解(原文:张龙豪 http://www.cnblogs.com/knowledgesea/p/3163725.html)
- Hadoop Sequence File 文件的读取和写入
- [CDN] 使用Python 进行批量指定节点进行URL测试