拿到WSDL文件java
下載CXF2linux
wsdl2java -d D:\test111 -all -exsh false -dns true -dex true -verbose D:\1.wsdlweb
獲得代碼,導入工程,main方法啓動便可app
linux 直接調試webservice接口curl
curl -H 'content-type: application/xml' -d '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.rc.infores.gpdi.com"><soapenv:Header/><soapenv:Body><ser:call><ser:in0><ser:bak1></ser:bak1><ser:bak2></ser:bak2><ser:reqCode>***********</ser:reqCode><ser:sysCode>**********</ser:sysCode><ser:sysPwd>**********</ser:sysPwd><ser:sourceCode>31000</ser:sourceCode><ser:targetCode>31000</ser:targetCode><ser:funcCode>ESBCRMSPSWSSERV</ser:funcCode><ser:sync>1</ser:sync><ser:version>2.0</ser:version></ser:in0><ser:in1></ser:in1></ser:call></soapenv:Body></soapenv:Envelope>' http://*******/ESBCRMSPS/ProxySvc/ESBCRMSPSWSSERV?WSDL