私があなたの質問を正しく理解していれば、既存の Web サービスに接続するだけでよく、独自の Web サービスを作成する必要はありません。もしそうなら、そしておそらく私が何かを見逃しているとしたら、Tomcat はまったく必要ないと思います。Netbeans を使用している場合は、新しいデスクトップまたは Web アプリケーションを作成し、プロジェクト名を右クリックします。[新規]、[その他] の順に選択し、[Web クライアント] を選択します。WSDL の場所に関する情報 (通常は URL) およびその他の必要な情報を入力します。
WebClient を追加したら、実際に Web サービスを呼び出す新しいクラスを作成します。Web サービス名が PlanPlusOnline の場合、次のようになります。
public final class PlanPlusOnlineClient
{
//instance to this class so that we do not have to reinstantiate it every time
private static PlanPlusOnlineClient _instance = new PlanPlusOnlineClient();
//generated class by netbeans with information about the web service
private PlanPlusOnlineService service = null;
//another generated class by netbeans but this is a property of the service
//that contains information about the individual methods available.
private PlanPlusOnline port = null;
private PlanPlusOnlineClient()
{
try
{
service = new PlanPlusOnlineService();
port = service.getPlanPlusOnlinePort();
}
catch (MalformedURLException ex)
{
MessageLog.error(this, ex.getClass().getName(), ex);
}
}
public static PlanPlusOnlineClient getInstance()
{
return _instance;
}
public static String getSomethingInteresting(String param)
{
//this will call one of the actual methods the web
//service provides.
return port.getSomethingIntersting(param);
}
}
これがあなたのやり方に役立つことを願っています。
Netbeans と Web サービスの詳細については、http://www.netbeans.org/kb/60/websvc/も参照してください。他のIDEでも同様だと思います。