[JAX-WS] Simple webservice and client

1. Create a new Dynamic Web Project LibraryWS.
2. Create a package webservice
3. Create a class BookWebService

4. Create a class Book

5. Run on Server (Glassfish!).
6. You should be able to access the service here:
7. Go to http://localhost:8080/LibraryWs/BookWebServiceService?wsdl for the wsdl (copy this URL)
8. Create a new Simple Java Project LibraryClient
9. Go to command line to a tmp folder and type:

10. Copy the generated folder webservice into eclipse under src so that you get the package webservice
11. Create the MainClient class in eclipse:

Leave a Reply

Your email address will not be published. Required fields are marked *