Cloud Computing
Cloud Computing
Aim: Define a simple services like Converting Rupees into Dollar and Call it from different platform
like JAVA and .NET
Steps:
Step 2: Go to file -> new project -> java web (select) -> web application > Name it > Add GlassFish
Server 4.1
Step 3: After that Next and give the project name and finish > (you’ll get index.html, delete that file)
Step 4: Right click on the project name page-> new-> Web Service.
Step 5: Give the web service name and package name -> finish
Step 6: A java file will be generate in that > right click >insert code > add web service operation
Step 7: Run the project and then test the web service > (the browser will open).
Step 8: Now we’ll be using the created Web Service by creating our web service client. So, Right Click
on Project Name > New > Other > Web Services > Web Service Client…>Browse your Project Name
and select WSDL file > Add Package Name > Finish.
Step 9: Now to make front page, we need to create a JSP file. So, Right Click on Project Name > New
> JSP > File Name: index > Finish.
Step 10: Create another JSP file and named it as indexaction.
Step 11: Now, drag the both currency port one by one and drop on the indexaction.jsp file.
Steps:
Step 2: Go to file -> new project -> java web (select) -> web application > Name it > Add GlassFish
Server 4.1
Step 3: After that Next and give the project name and finish > (you’ll get index.html, delete that file)
Step 4: Right click on the project name page-> new-> Web Service.
Step 5: Give the web service name and package name -> finish
Step 6: A java file will be generate in that > right click >insert code > add web service operation
Step 7: Run the project and then test the web service > (the browser will open).
Step 8: Now we’ll be using the created Web Service by creating our web service client. So, Right Click
on Project Name > New > Other > Web Services > Web Service Client…>Browse your Project Name
and select WSDL file > Add Package Name > Finish.
Step 9: Now to make front page, we need to create a JSP file. So, Right Click on Project Name > New
> JSP > File Name: index > Finish.
Step 10: Again create a JSP file with named as indexaction.jsp and drag the both temp port one by
one and drop on the indexaction.jsp file.
Steps:
3. Click on next.
4. Click on finish.
Aim: Develop application to consume Google’s search / Google’s Map RESTful Web service.
Steps:
Step 2: Go to file -> new project -> java web (select) -> web application > Name it > Add GlassFish
Server 4.1
Step 3: After that Next and give the project name and finish
Step 4: Now, create JSP file.
Step 5: Before running the application we need the Google API key:- Visit Google APIs Console
(https://console.developers.google.com, you havetologinwith your Google account).
<!DOCTYPE html>
<html>
<head>
<style>
#map {
height: 400px;
width: 100%;
</style>
</head>
<body>
<%
double lati=Double.parseDouble(request.getParameter("t1"));
double longi=Double.parseDouble(request.getParameter("t2"));
%>
<div id="map"></div>
<script lang="javascript">
function initMap() {
});
position: info,
map: map
});
}
</script>
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBT9WoyDPR5oTMl-BoG1sf7OuW2BZZX-
00&callback=initMap">
</script>
</body>
</html>