Developer Tools
JDeveloper
When you complete the steps for creating the web service using the wizard, JDeveloper displays some messages in the Web Services Log window.
In the Application Navigator, notice that the icon before the Java file name has changed, indicating that the Java class you created is now a web service:
JDeveloper has also automatically created and configured the
web.xml file with the necessary web service servlet and servlet mapping configuration elements:
<servlet>
<servlet-name>CreditRatingSoap12HttpPort</servlet-name>
<servlet-class>ratingservice.CreditRating</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CreditRatingSoap12HttpPort</servlet-name>
<url-pattern>/CreditRatingSoap12HttpPort</url-pattern>
</servlet-mapping>
The
web.xml file is located in the
WEB-INF folder under
Web Content in the Application Navigator.
In the source editor of
CreditRating.java, notice that JDeveloper has added the following
@WebService,
@BindingType annotations before the class definition:
@WebService(portName = "CreditRatingSoap12HttpPort")
@BindingType(SOAPBinding.
SOAP12HTTP_BINDING)
Copyright © 1997, 2009, Oracle. All rights reserved.