一.生成方式選擇
接收到服務端第三方給的wsdl文件,需要在本地生成客戶端調用。調用或生成客戶端的方式有很多種,可能你會使用eclipse上的插件、IDEA上的插件、使用xfire簡單的調用方式等,會碰到各種問題,就是生成不了。其實選擇哪種方式,要根據wsdl定義stype和use的方式。
stype描述了服務調用方式:rpc或document,use定義了類型:encoded或literal
二.使用出現的錯誤如下
----------------------------------------------------------------------------------------------------------------------------------------------------
wsimport -keep -p zhenzhen -d ~ http://*.*.*.*/SMSWebService/services/sigMessageServices/?wsdl
parsing WSDL...
[ERROR] "Use of SOAP Encoding is not supported.
SOAP extension element on line 48 in http://*.*.*.*/SMSWebService/services/sigMessageServices/?wsdl has use="encoded" "
Failed to parse the WSDL.
--------------------- -------------------------------------------------------------------------------------------------------------------------------------
作者:zhenzhendeblog
來源:CSDN
原文:https://blog.csdn.net/zhenzhendeblog/article/details/52142123
版權聲明:本文爲博主原創文章,轉載請附上博文鏈接!