Step 3: Start the service

Compile the Java class created in Step 2: Transform the Java class in a Web service, and run it.

Commands to compile and execute the service in standalone mode:
$ javac BarcodeService.java
$ java BarcodeService

Once the service is started, it is ready to accept requests and you can also retrieve its WSDL at the following URL:

http://localhost/9090/BarcodeService?WSDL

Note: If you want the service to be started on a Web server, you must deploy it first using Eclipse or the Web Server deployment tools.

In the next step we generate the client stub to access the BarcodeService, Step 4: Generate BDL stub to access the Java library.