WS is a server running 🔌 on a computer device, listening 👂 for requests at a particular port over a network, serving web documents (HTML, JSON, XML, Images), and creating web applications services, which serve in solving specific domain problems over the web (www, internet, HTTP).
- The purpuse is to create an application to search a given book.
- Show its rating.
- Must use Web service.
-
Turn on your Xampp. 🔛
-
Create new database and name it "bookdb" then import the sql file . 💾
-
Open a cmd window and type :
* " cd projectpath\BookWebService\BookClient\src\ " , * then " wsimport -Xnocompile http://localhost:8585/BookWS?wsdl " in order to generate the stub.
-
Execute the class BookService.java to deploy the service.
-
Execute the class BookClient.java.
-
When the interface of our app appears, the user types the title of book to search for, then clicks into the search icon. 🔎
-
User can like 👍 or dislike 👎 any searched book.
Generating The Stub From The CMD | Result |
---|---|
Service Deployment |
---|
Client Part Execution |
---|
Main Interface |
---|
Searching a book |
---|
Like | Dislike |
---|---|
To understand more the principle of web services, don't hesitate to watch this video which helped us a lot in our work 😉.
- NetBeans IDE 8.2
- JDK 8
- Jfoenix 8.0.1
- controlsfx 9.0.0
- mysql connector java 5.1.42