0% found this document useful (0 votes)
22 views4 pages

Copy1-Worksheet - 1 Wss

The document is a student worksheet for a Web Service Security Lab. It summarizes a practical where the student printed a program using WSDL to create a simple web service that returns a greeting. The student coded a Java class with a @WebService annotation and a method annotated with @WebMethod to return a greeting concatenated with a passed string. The student learned how to use WSDL to define and call a web service.

Uploaded by

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

Copy1-Worksheet - 1 Wss

The document is a student worksheet for a Web Service Security Lab. It summarizes a practical where the student printed a program using WSDL to create a simple web service that returns a greeting. The student coded a Java class with a @WebService annotation and a method annotated with @WebMethod to return a greeting concatenated with a passed string. The student learned how to use WSDL to define and call a web service.

Uploaded by

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

Worksheet:- 1

Student Name: Hrithik UID: 19BCS1968


Branch: CSE Section/Group:On-23 /b
Semester: 7th Date of Performance: 09/08/2022
Subject Name: Web Service Security Lab Subject Code: CSB-422

1. Aim/Overview of the practical:

Print a program using WSDL (Hello Service).

2. CODE:

package webs.com;

import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;

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

@WebMethod(operationName = "hello")
public String hello(@WebParam(name = "name") String txt) {
return "Hello " + txt + " !";
}
}
OUTPUT :
Learning outcomes (What I have learnt):

1. I learned how to printout using WSDL i.e. Web Service Description Language.
Evaluation Grid (To be created as per the SOP and Assessment guidelines by the faculty):

Sr. No. Parameters Marks Obtained Maximum Marks


1.
2.
3.

You might also like