百度apache-cxf,或到官网http://cxf.apache.org/下载 apache-cxf
webservice apache-cxf生成代码
D:\Program Files\apache-cxf-3.3.6\bin,输入cmd
输入
bin>wsdl2java -encoding utf8 http://10.2.152.251:8003/userRoleAutho?wsdl
bin>wsdl2java -encoding utf8 http://podev.ninestar.com:50000/dir/wsdl?
提示以下是正常的,看看D:\Program Files\apache-cxf-3.3.6\bin\com是不是已生成
'f' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
wsdl2java.bat -p com.els.service.webservice.productionresourcegroup -client -encoding utf-8 -noAddressBinding http://podev.ninestar.com:50000/dir/wsdl?p=ic/f7b2d31f6a56359b95dd666f973159e9
生成成功后会在cxf目录bin下看见一个server/com文件夹(里面就是对应的java文件):
直接取以下地址的类
D:\Program Files\apache-cxf-3.3.6\bin\com\sap\document\sap\rfc\functions
D:\Program Files\apache-cxf-3.3.6\bin\com\ninestar\zfpo_mm_081\consumer
webservice接口调试
工具:soapUI
1.File->SOAP
Project Name:随便名字,SRM
SRM右建-》Add WSDL
WSDL location:http://61.143.61.22:7001/ELSDatalayer_NSD/rest/holidayShiftData?wsdl
如果有代理proxy,关闭
webservice地址:https://cs.51qqt.com/ELSServer_NSD/rest/SRMDeliveryPlan/deliveryPlan?wsdl
<jaxws:server address="/SRMDeliveryPlan" serviceClass="com.els.service.open.webservice.SRMDeliveryPlanService">
<jaxws:serviceBean>
<bean class="com.els.service.open.webservice.impl.SRMDeliveryPlanServiceImpl"></bean>
</jaxws:serviceBean>
</jaxws:server>
SRMDeliveryPlan接口地址,deliveryPlan方法