Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Practical No : 05
- Aim : Write a JAX-WS Web Service to perform following operations. Define Servlet/JSP that consumes web service.
- Input :
- Calculationwebservice.java:-
- package server;
- import javax.jws.WebService;
- import javax.jws.WebMethod;
- import javax.jws.WebParam;
- @WebService(serviceName = "calculationwebservice")
- public class calculationwebservice {
- @WebMethod(operationName = "addition")
- public int addition(@WebParam(name = "a") int a,@WebParam(name = "b") int b)
- {
- int c;
- c=a+b;
- return c;
- }
- }
Add Comment
Please, Sign In to add comment