Online-TicTacToe

Log | Files | Refs | README | LICENSE

commit fa5641023f5994ed9fd4e9a673e5c0ecf5764db7
parent d70dad20737e6b785e9a81d7c6749fd2f16c7dce
Author: William Lindholm <william_lindholm@outlook.com>
Date:   Thu,  7 Nov 2024 16:17:59 +0000

Updated report to reflect current progress

Diffstat:
MREADME.md | 24+++++++++++++++++++++++-
Amedia/client_dependency_addition.png | 0
Amedia/client_interface_creation.png | 0
Amedia/glassfish_server_creation1.png | 0
Amedia/glassfish_server_creation2.png | 0
Amedia/glassfish_web_interface.png | 0
6 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -1,2 +1,23 @@ # Online TicTacToe - An multiplayer TicTacToe game for the course distributed computing. +A multiplayer TicTacToe game for the course distributed computing. + +## Introduction +This is a project report for a group project in distributed computing. The assignment is to create an online multiplayer tic-tac-toe game in java. The web server used is a glassfish server, which communicates with the java swing client using SOAP. Games, users and scores are stored in a mysql server hosted using XAMPP. + +## Project setup + +### Glassfish +To run the provided web service, responsible for communicating with the clients and database, a glassfish version 7.0.6 server was created. This version of glassfish does not run on the newest version of the JDK (22), therefore JDK 20 was installed and chosen for this project. +![glassfish server creation](./media/glassfish_server_creation1.png) +![glassfish server creation](./media/glassfish_server_creation2.png) + +### Web service setup +After running the tictactoe web service, this interface was presented, with all the necessary functions to get our project running. This also gave us access to the WSDL file, which we can use to automatically generate a client interface for communicating with the web service. +![web service web interface](./media/glassfish_web_interface.png) + + +### Client to server interface +To generate the SOAP interface, a new web service client was created in netbeans using a link to the WSDL file. Thereafter, necessary dependencies were added to allow the project to run; `org.glassfish.metro : webservices-rt : 3.0.3` and `com.sun.xml.ws : jaxws-maven-plugin : 4.0.1`. +![web service client creation](./media/client_interface_creation.png) +![client dependencies](./media/client_dependency_addition.png)<br> +After then building the client project, the files `TicTacToeWS.java` and `TicTacToeWebService.java` were automatically generated, which now allow us to call procedures on the TicTacToeWS. +\ No newline at end of file diff --git a/media/client_dependency_addition.png b/media/client_dependency_addition.png Binary files differ. diff --git a/media/client_interface_creation.png b/media/client_interface_creation.png Binary files differ. diff --git a/media/glassfish_server_creation1.png b/media/glassfish_server_creation1.png Binary files differ. diff --git a/media/glassfish_server_creation2.png b/media/glassfish_server_creation2.png Binary files differ. diff --git a/media/glassfish_web_interface.png b/media/glassfish_web_interface.png Binary files differ.