Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
TM352- Web Mobile and Cloud Technologies
Answered

Question 1

You are requested to develop a RESTful web service application using JAVA programming language. We provided you with the JAVA class “Basics.java”, this class implements methods to store and retrieve Jason objects from a file. It has more functionally, you are asked to read the source code carefully.

The following Jason value pairs needs to be stored on the server sides in a file (you can do so by calling the method “Basics.persist(Jason Object, file name)”):

jsonObjBuilder.add("Samer", "123456");

jsonObjBuilder.add("Sami", "456789");

jsonObjBuilder.add("Nisrine", "12689");

This is implemented within the “Basics.java” class and it can be executed within the main method as follows:

public static void main(String[] args)

  {

 //Make a JSON ojbect representing a phone contact list

JsonObject myObj = Basics.createCarObject();

System.out.println("Made a json object " + myObj);

Basics.tellMeAbout(myObj);

//Write to a file

String fname = "JSON.txt";

Basics.persist(myObj, fname);

}

After getting familiar with the class “Basics.java”, you need to create a RESTful web service that offers two services as follows:

Implement the following RESTful methods:

The getPhoneNumber expect as argument a username and once executed it returns the corresponding phone number, this can be done by querying the Jason object sorted on the server side

@GET

@Path("/getPhone/{name}") 

@Produces(MediaType.TEXT_HTML)

public String getPhoneNumber(@PathParam("name") String name) 

and the method getallContacts expect no argument and once executed it returns the all username phone number, this can be done returning the Jason object sorted on the server side

@GET

@Path("/getContact/")[5 marks]

@Produces(MediaType.APPLICATION_JSON)

public JsonObject getAllContacts() 

You need to provide an HTML page that can be used to execute both web service methods .

You need also to provide a JAVA desktop (RESTful client application) application that can call both web service methods.

All of this can be accomplished within one NetBeans web service project.

You are asked to provide the whole NetBeans project as compressed file

Question 2

Suppose that you are in charge of the design of a client mobile application that is described below:

The client business is online money payment service. The clients can use the company portal to pay whatever they shop online, from any website. Customers, should first open an account, provide their credentials including credit card details (to be used for the payment). The advantage of this company is that all your payments will go through one trusted online portal.

Generally, mobile apps are categorised as either native or cross-platform web app. Native apps are those that are built for, and deployed to, a particular platform and operating system. On the other hand, cross-platform web apps are applications that run inside a web browser to simulate local functionality.

The choice between developing a cross-platform web app or a native app is far from being a simple one. It is not simple to give a generic recommendation of what approach to use without knowing contextual factors such as programming experience, resources, the intended scope of the application, and so on.

You are asked to pick up one design and to justify your answer in front of a technical team form well known consulting company, taking into consideration the audience who are going to use the app and the context of the app usage.

Provide a comparation table between your choice and the other choice. Use the following criteria for the comparison table, you are free to add/replace any criteria. 

[ one mark for each criterion, total of eight (4)

1-The app maintenance cost (app update)

2-The efficiency of the app to take advantage of the device resources

3-The technology used to develop the app

4-The security issue of the app 

Based on the result of the comparison table provide a justification of your design choice that is in line with table results.  You are free to model the different cafeteria based on their importance for this kind of app, some criteria are more relevant for this app context, so you have to provide a convincing design choice, because this will be evaluated by experts, be precise and consistent and you should give the impression that your technical skills about the different design choice are sound. 

support
Whatsapp
callback
sales
sales chat
Whatsapp
callback
sales chat
close