Springws-static-wsdl
提供:Dev Guides
Spring WS-静的WSDL
前の章のリンク:/springws/springws_first_application [Spring -WS-First Application]では、Spring WS設定を使用してWSDLを自動的に生成しました。 この場合、Spring WSを使用して既存のWSDLを公開する方法を表示します。
Step | Description |
---|---|
1 | Create a project with a name leaveService under a package com.finddevguides as explained in the Spring WS - First Application chapter. |
2 | Create a WSDL leave.wsdl under the/WEB-INF/wsdl sub-folder. |
3 | Update spring-ws-servlet.xml under the/WEB-INF sub-folder. We are using the static-wsdl tag here instead of the dynamic-wsdl. |
4 | The final step is to create content of all source and configuration files and export the application as explained below. |
===/WEB-INF/spring-ws-servlet.xml
===/WEB-INF/spring-ws-servlet.xml
プロジェクトを実行する
ソースファイルと構成ファイルの作成が完了したら、アプリケーションをエクスポートする必要があります。 アプリケーションを右クリックして、エクスポート→WARファイルオプションを使用し、leaveService.warファイルをTomcatのwebappsフォルダーに保存します。
次に、Tomcatサーバーを起動し、標準ブラウザーを使用してwebappsフォルダーから他のWebページにアクセスできることを確認します。 URL-http://localhost:8080/leaveService/leave.wsdlにアクセスしてみてください。SpringWebアプリケーションで問題がなければ、次の画面が表示されます。