私が正しくあなたの質問を理解していた場合、あなただけの独自の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で似ていると確信しています。