量産メモ帳

忘れっぽいのでメモを残しています。浅く適当に書きます。

HTTPプロキシやBasic認証を挟んだ wsimport のやり方。

スポンサーリンク

ここに書かれている通りにやってみたが、応答が返って来なかった。


Added support for basic authentication and proxy authentication in wsimport.

For proxy authentication, set http.proxyUser and http.proxyPassword.

For server authentication create $HOME/.metro/auth, give it read permission.
This file should have the WSDL URL with username and password in the RFC 1738
format:

http[s]://user:password@host:port//

for example, if the WSDL URL is: http://foo.com/myservice1?wsdl

the $HOME/.metro/auth will have a line entry as:

http://myusername:password@foo.com/myservice1?wsdl

$HOME/.metro/auth can have line delimited multiple entries and they can be used
for various sites that need basic authentication.

I have verified it working on Glassfish for server based authentication. Try out
the nightly for proxy and server authentication and let us know.



何か分かったら、また後で書く。


参考資料: