Annotating the service endpoint interface with @WebService
This recipe explains the possibilities of annotating a service endpoint interface with the @WebService
annotation. In the Annotating Java code for web service creation recipe in Chapter 8, Exposing Java Code as a SOAP Service, we covered a similar topic. Here, we provide a more in-depth view of the @WebService
annotation and explore the parameters we can set for the @WebService
annotation.
Getting ready
In this recipe, we will continue the development of the web service from the Creating a service endpoint interface recipe in this chapter.
How to do it…
Here are the steps we need to perform to annotate the SEI with the @WebService
annotation:
- Right-click on the web service class (
org.packt.cc.business.CCGateSvc
) and select the Properties… option in JDeveloper. The Java Web Service Editor opens where you can configure the web service creation process. - Enter
CCGateSvc
as the service name andCCGateSvcPort
as the service port...