0% found this document useful (0 votes)
39 views24 pages

USCSP602 CC Practical 04 06

Uploaded by

topg1301003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views24 pages

USCSP602 CC Practical 04 06

Uploaded by

topg1301003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

Smt.

Chandibai Himathmal Mansukhani College


Cloud Computing and Web Services (USCSP602)
Practical -04
Develop application to download image/video from server or upload image/video to server
using MTOM techniques

Learning Objectives:
Students will be able to:

Content:
• Develop application to download image/video from server or upload image/video
to server using MTOM techniques.

Process:
• Write all the steps to Develop application to download image/video from server or
upload image/video to server using MTOM techniques.

Prior Knowledge:
• Basic knowledge of Web Service

Q.1 Develop application to download image/video from server or upload image/video


to server using MTOM techniques.

Batch: ___________ / Roll No: ________________ 87


Smt. Chandibai Himathmal Mansukhani College

88
Smt. CHM College/CS Dept./Sem-VI/USCSP602/USCS602/2023-2024
Smt. Chandibai Himathmal Mansukhani College

Batch: ___________ / Roll No: ________________ 89


Smt. Chandibai Himathmal Mansukhani College

90
Smt. CHM College/CS Dept./Sem-VI/USCSP602/USCS602/2023-2024
Smt. Chandibai Himathmal Mansukhani College
FileName:
package WS;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import javax.jws.Oneway;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;

@WebService(serviceName = "ImageWS")
public class ImageWS {

@WebMethod(operationName = "upload")
@Oneway
public void upload(@WebParam(name = "FileName") String FileName,
@WebParam(name = "ImageBytes") byte[] ImageBytes) {

Batch: ___________ / Roll No: ________________ 91


Smt. Chandibai Himathmal Mansukhani College

@WebMethod(operationName = "download")
public byte[] download(@WebParam(name = "FileName") String FileName) {

92
Smt. CHM College/CS Dept./Sem-VI/USCSP602/USCS602/2023-2024
Smt. Chandibai Himathmal Mansukhani College

Batch: ___________ / Roll No: ________________ 93


Smt. Chandibai Himathmal Mansukhani College

94
Smt. CHM College/CS Dept./Sem-VI/USCSP602/USCS602/2023-2024
Smt. Chandibai Himathmal Mansukhani College

FileName:index.jsp
<%--
Document : index
Created on : Mar 17, 2024, 1:08:23 PM
Author : RAZIA KHAN
--%>

Batch: ___________ / Roll No: ________________ 95


Smt. Chandibai Himathmal Mansukhani College

<%@page import="java.io.BufferedOutputStream"%>
<%@page import="java.io.FileOutputStream"%>
<%@page import="java.io.File"%>
<%@page import="java.io.FileInputStream"%>
<%@page import="java.io.BufferedInputStream"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>

<%-- start web service invocation --%><hr/>


<%
try {
ws.ImageWS_Service service = new ws.ImageWS_Service();
ws.ImageWS port = service.getImageWSPort();
//String filePath=request.getParameter("f1");

96
Smt. CHM College/CS Dept./Sem-VI/USCSP602/USCS602/2023-2024
Smt. Chandibai Himathmal Mansukhani College
} catch (Exception ex) {
// TODO handle custom exceptions here
}
%>
<%-- end web service invocation --%><hr/>
<%-- start web service invocation --%><hr/>
<%
try {
ws.ImageWS_Service service = new ws.ImageWS_Service();
ws.ImageWS port = service.getImageWSPort();

} catch (Exception ex) {


// TODO handle custom exceptions here
}
%>
<%-- end web service invocation --%><hr/>

</body>
</html>

Batch: ___________ / Roll No: ________________ 97


Smt. Chandibai Himathmal Mansukhani College
OUTPUT:

Date: _______________________ Teachers Signature: ________________

98
Smt. CHM College/CS Dept./Sem-VI/USCSP602/USCS602/2023-2024
Smt. Chandibai Himathmal Mansukhani College
Cloud Computing and Web Services (USCSP602)
Practical -05
Installation and Configuration of virtualization using KVM

Learning Objectives:
Students will be able to:

Content:
• Installation and Configuration of virtualization using KVM.

Process:
• Write all the steps to install and Configure of virtualization using KVM.
Prior Knowledge:
• Basic knowledge of KVM

Installation and Configuration of virtualization using KVM Steps:


1.

2.

3.

Batch: ___________ / Roll No: ________________ 99


Smt. Chandibai Himathmal Mansukhani College

4.

5.

6.

7.

100
Smt. CHM College/CS Dept./Sem-VI/USCSP602/USCS602/2023-2024
Smt. Chandibai Himathmal Mansukhani College

8.

9.

Batch: ___________ / Roll No: ________________ 101


Smt. Chandibai Himathmal Mansukhani College
10
.

11
.

12
.

Date: _______________________ Teachers Signature: ________________

102
Smt. CHM College/CS Dept./Sem-VI/USCSP602/USCS602/2023-2024
Smt. Chandibai Himathmal Mansukhani College
Cloud Computing and Web Services (USCSP602)
Practical -06
Consume Google’s search / Google’s Map RESTful Web service.

Learning Objectives:
Students will be able to:

Content:
• Develop application to consume Google’s search / Google’s Map RESTful Web
service.

Process:
• Write all the steps to Develop application to consume Google’s search / Google’s
Map RESTful Web service.

Prior Knowledge:
• Basic knowledge of RESTFul Web Service

Q.1 Develop application to consume Google’s search / Google’s Map RESTful Web
service.

Batch: ___________ / Roll No: ________________ 103


Smt. Chandibai Himathmal Mansukhani College

104
Smt. CHM College/CS Dept./Sem-VI/USCSP602/USCS602/2023-2024
Smt. Chandibai Himathmal Mansukhani College

Batch: ___________ / Roll No: ________________ 105


Smt. Chandibai Himathmal Mansukhani College

106
Smt. CHM College/CS Dept./Sem-VI/USCSP602/USCS602/2023-2024
Smt. Chandibai Himathmal Mansukhani College

Batch: ___________ / Roll No: ________________ 107


Smt. Chandibai Himathmal Mansukhani College

FileName:index.jsp
<%--
Document : map
Created on : Apr 9, 2024, 12:44:24 PM
Author : RAZIA KHAN
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>

<body>

108
Smt. CHM College/CS Dept./Sem-VI/USCSP602/USCS602/2023-2024
Smt. Chandibai Himathmal Mansukhani College

</body>
</html>

Batch: ___________ / Roll No: ________________ 109


Smt. Chandibai Himathmal Mansukhani College

Date: _______________________ Teachers Signature: ________________

110
Smt. CHM College/CS Dept./Sem-VI/USCSP602/USCS602/2023-2024

You might also like