Having created a WebLogic web service project, next, create a WebLogic web service. Select the project node in Project Explorer and select File | New | Other. In the New wizard select Oracle | WebLogic | Web Services | WebLogic Web Service and click on Next, as shown in the following screenshot:
In the New Web Service
window specify a package name (hellowebservice
) in the Package field and a web service name (HelloWS
) in the Name field. Check the Generate Service Endpoint Interface checkbox and click on Finish, as shown in the following screenshot:
A web service implementation class (HelloWSImpl.java) and a service endpoint interface (HelloWS.java) get created, as shown in the following screenshot:
The web service
implementation class—HelloWSImpl—
is annotated with the @WebService
annotation and implements the HelloWS
interface. The implementation class contains a hello
method that takes a string parameter for name
and returns a Hello
message containing...