Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package QUT.n8592268.Insurance;
- import javax.jws.WebService;
- import javax.jws.WebMethod;
- import javax.jws.WebParam;
- import javax.ejb.Stateless;
- /**
- *
- * @author Keiko
- */
- @WebService(serviceName = "n8592268_InsuranceWS")
- @Stateless()
- public class n8592268_InsuranceWS {
- /**
- * @param id
- * @param quote
- *
- */
- @WebMethod(operationName = "checkCoverageValue")
- public float checkCoverageValue(
- @WebParam(name = "id") String id,
- @WebParam(name = "quote") float quote) {
- final float MAX = 5000f;
- if(quote > MAX){
- return (quote - MAX);
- } else {
- return 0.00f;
- }
- }
- /**
- *
- * @param pid
- *
- */
- @WebMethod(operationName = "checkPolicyIsValid")
- public boolean checkPolicyIsValid(@WebParam(name = "pid") String pid) {
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement