Games Mashup


Published on

  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Games Mashup

  1. 1. Games Mashup Corey Schaf, Sirak Gizaw CSE486 Distributed Systems University at Buffalo,
  2. 2. 1. Executive Summary This project is a web service which provides full access to a database of games. The service can be used within many applications such as web sites and mobile applications. What we are undertaking in this project is to fully understand and utilize web services and their relationship to relational databases. One of our client web applications, provides a website like presentation to the user, and allows for the user to look at and get info on any new title that are out or coming out. The web service also allows for search the database for a game, and if not found, will call the GamesRadarWS to acquire the information. We also integrate Amazon web services to provide a user with the ability to purchase the game and search for the best prices. The web service was designed to provide a layer of abstraction over the database and allow for easy access to the resources. The web service can be consumed in many ways, in which we implemented it in a website and an Android application. Users of this service can be developers looking to integrate game information in their site, or anyone looking for an easy way to build a game site. 2. Project Objectives Games Mash up project will meet the following objectives: • Provide information such as reviews, ratings, and release dates about video games • Provide a way to find the cheapest deal to buy the game from Amazon. • Give user an option to create an account • Provide authentication login feature • Provide images for the video games 3. Project Approach We developed the application in step by step. First was communicating with the Games Rader web service to get the game details. To test this we assigned the all the details obtained from the service to a game bean and printed them out with a basic java application. Few details about a single game were being printed out at first. After having this work for multiple games, we stored handful of games into a relational database. A local MySql database was used to store the game information. We used hibernate to access the data stored in the database. Second phase was integrating this into a web service. Using hibernate reverse engineering we created setters and getters for the game beans and used the object returned to display the information on the web page. For the Amazon Web service, we’d to subscribe for Amazon associates account. Requests to Amazon services had to be signed to be considered as valid. We used a
  3. 3. different class to sign the requests. The class used SHA256 algorithm to sign and put timestamp on the URL that needed to be parsed. Once we had the XML file from the service we used SAX API to parse the data. A few games were selected and their information was stored in the relational database. 4. Project Description 5. Design Details Programming Language: o Java IDE: o NetBeans 6.8 Servers: o Tomcat 6.0 o GlassFish v3 Database: o MySQL
  4. 4. Framework: o Hibernate External web services used: o Games Radar - o Amazon Web Service - 6. User’s Manual - Sign up by clicking on ‘New User?’ - Login in using user name and password created - Choose and click on the video game from the list displayed on the page 7. Programmers Manual Modules - AWSJAVATrial – makes a REST call via http to Amazon web service o Parses the xml data obtained and stores in a database - GamesRadarWS – sends REST requests to Games Radar web service o Acquires a list of games and information, based on user input o Acquires more detailed information from the list o Stores game details to the database o Provides a list of current new stories about the games via REST calls - GamesMashupWS2 o Provides a SOAP based web service for accessing the relational database o Provides list of methods that can be invoked by the consumer o Methods include: getAllNews, getOneGameInfo, getListOfGames, searchAndAddGamesToDB - GamesMashupClientGlassFish o Consumes the GamesMashup web service o Provides information about the games via JSP pages o Provides user sign up and login - LoginSecurity o Provides interface to log in and register new user o Uses SHA1 to safely secure the password o Connects to the database to store and check users 5. Reference: - - -
  5. 5. - -