WindowsのApache TomcatサーバーにデプロイされたAXISサーブレットがあります。
AXIS で実行したい Web サービスを作成しました。
Web サービスをデプロイするときは、クラスから jar ファイルを作成し、それらを「axis\WEB-INF\lib」ディレクトリにコピーします。次に、wsdd ファイルを使用して Web サービスをデプロイします。私の質問は、どうすればパラメーターを Web サービスに渡すことができ、どのようにパラメーターを読み取ることができるのでしょうか?
私が持っている唯一の web.xml ファイルは、AXIS web.xml ファイルです。私はそれらをそこに置くべきですか?
1 に答える
0
I came across with exactly same issue. I have a not so perfect solution. I am using a properties file to store params and access this properties file in the service classes. I am facing problem when I put all my classes in to a jar file. I am able to access properties file in my service class if I place properties file inside the jar file. I am unable to access properties file (without hardcoding the path) when I place it outside jar file. For maintainance point of view it is good practice to keep properties file accessible easyly.
-Rao
于 2011-08-03T18:10:04.750 に答える