eclipseのaxisプラグインで生成したsoap clientのリクエスト、レスポンスをログに出力する

ながーいオプションを追加する。

java -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.showdatetime=true -Dorg.apache.commons.logging.simplelog.log.org.apache.axis.transport.http=debug -jar SoapClient.jar > stdout.log 2>stderr.log

参考サイトをはじめ、いろんなサイトに

-Dorg.apache.commons.logging.simplelog.log.http.wire=debug

とか

-Dorg.apache.commons.logging.simplelog.log.org.apache.commons.httpclient=debug

とかを付けて起動してみろって書いてあったけど、eclipseが吐き出すクライアントは
どうもhttpclientとかを使っていないらしく、ログを出力してくれなかった。
仕方がないので利用しているjarの中身を覗いて多分これだろうというパッケージ名を
代わりに書いたら上手くログを出力してくれた。命名規則って大事デスネ。

参考:

http://stackoverflow.com/questions/2524301/log-axis2-client-requests-and-responses

3/3追記: 多分axis2じゃなくてaxis1使っているからっぽい。