groovyws でプリエンプティブ認証を設定できません。(ws プロバイダーにはプリエンプティブ認証が必要です。)
groovywsドキュメントで調べようとしましたが、手がかりがありません。
import groovyx.net.ws.WSClient
//def proxy = new WSClient("http://202.44.4.97/webservice/pttinfo.asmx?wsdl", this.class.classLoader)
def proxy = new WSClient("http://192.168.3.69/provider/myService", this.class.classLoader)
proxy.setBasicAuthentication('user', 'pass')
proxy.initialize()
以下エラーです。
Caused by: java.io.IOException: Server returned HTTP response code: 405 for URL: http://192.168.3.69/provider/myService