Java Reference
In-Depth Information
In the web services wizard, we need to enter a name for our web service, a package
where our web service implementation code will be created, and select the
Create
Web Service From Scratch
radio button, then click
Finish
to generate our web
service. At this point we should see the web service source code.
Notice that the generated session bean does not implement neither a local nor
remote business interface, it is simply decorated with the
@WebService
annotation,
its methods are decorated with the
@WebMethod
annotation, and each parameter
is decorated with the
@WebParam
annotation. The only difference between the
generated code for this web service and the one for the previous example is that
the generated class is a stateless session bean, therefore it can take advantage of EJB
transaction management, aspect-oriented programming, and other EJB features.