Quantcast
Channel: プログラム の個人的なメモ
Viewing all articles
Browse latest Browse all 860

【トラブル】【JAX-WS】クライアント側で、WebServiceException: Method xxxxx is exposed as WebMethodが発生する

$
0
0

問題

 * Webサービスに、クライアント側から以下の「例外内容」が発生する

例外内容

xxxxx : メソッド名
javax.xml.ws.WebServiceException: Method xxxxx is exposed as WebMethod,
 but there is no corresponding wsdl operation with name xxxxx in the wsdl:portType{http://hostname.com}ServiceName

原因

 * Webサービス側では削除したメソッドが、クライアント側では削除されておらず
   Webサービス側とクライアント側で一致せずに例外が発生してしまっている

解決案

 * Webサービス側で削除したメソッドを復活する
 (中身を実装しなくてもいいがインターフェースとして残しておく)

補足

 * 以下のサイトにあるようにクライアント側のローカルにWSDLファイルを用意してみたが問題解決できなかった
   (やり方が悪い可能性もあるが)
http://stackoverflow.com/questions/13345328/ignore-missing-method-in-jax-ws-client

Viewing all articles
Browse latest Browse all 860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>