tell me more iconIDE内

ウィザードを使用したWebサービス作成ステップを完了すると、Web Services Logウィンドウにメッセージが表示されます。

Web services log in the Log window

Application NavigatorとStructureウィンドウでは、作成したJavaクラスがWebサービスになっていることがわかります。 Application Navigatorでは、Javaファイル名の前にあるアイコンが替わっています。Structureウィンドウには、 Service Summaryタブが追加されています。

Application Navigator after publishing web service

Structure window, Service Summary tab

JDeveloperによって、Webサービス・サーブレットとサーブレット・マッピング設定要素とともに web.xmlファイルが自動的に作成および設定されます。

                           
<servlet>
  <servlet-name>RatingServiceSoap12HttpPort</servlet-name>
  <servlet-class>ratingservice.CreditRating</servlet-class>
  <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
  <servlet-name>RatingServiceSoap12HttpPort</servlet-name>
  <url-pattern>/RatingserviceSoap12HttpPort</url-pattern>
</servlet-mapping>
                        

web.xmlファイルは、Application Navigatorの Web Contentの下にある WEB-INFフォルダにあります。

CreditRating.javaのJavaソース・エディタでは、クラス定義の前に @WebService@BindingTypeアノテーションがJDeveloperによって追加されました。

                           
@WebService(name = "RatingService", serviceName = "RatingService", portName = "RatingServiceSoap12HttpPort")
@BindingType(SOAPBinding.SOAP12HTTP_BINDING)
                        

Copyright © 1997, 2008, Oracle. All rights reserved.