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:

  1. Right-click on the web service class (org.packt.cc.business.CCGateSvc ...

Get BPEL and Java Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.