jaxws wsdl2java_cxf spring wsdl2java

安装cxf 2.5.2配置环境变量(添加 CXF_HOME D:\0pentakill\00dev-tool\apache-cxf-2.5.2\bin,

classpath 追加   CXF_HOME/bin;

)

cmd 输入 wsdl2java 测试如果测试没有反应 添加CLASSPATH %CXF_HOME%\lib

使用 cd到 指定文件夹 执行 wsdl2java wsdl路径生成客户端代码 拷贝到 src/mian/java中

maven

2.7.18

org.apache.cxf

cxf-api

${cxf.version}

org.apache.cxf

cxf-rt-frontend-jaxws

${cxf.version}

org.apache.cxf

cxf-rt-transports-http

${cxf.version}

properity

endpoint = http://localhost:12333/queryCustomer/wsdl?wsdl

spring配置文件

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:context="http://www.springframework.org/schema/context"

xmlns:jaxws="http://cxf.apache.org/jaxws"

xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"

xmlns:sec="http://cxf.apache.org/configuration/security"

xsi:schemaLocation="http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans-3.2.xsd

http://www.springframework.org/schema/context

http://www.springframework.org/schema/context/spring-context-3.2.xsd

http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd

http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd

http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值