@@ -0,0 +1,1379 @@
+package com.ibm.prap.paycheck;%0Aimport javax.ws.rs.GET;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.PathParam;%0Aimport javax.ws.rs.Produces;%0A%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0Aimport javax.ws.rs.core.Response;%0A%0A@Path(%22/paycheckservice%22)%0Apublic class PayCheckService %7B%0A%09 @Path(%22%7BinvoiceNo%7D%22) %0A%09 @GET%0A%09  @Produces(%22application/json%22)%0A%09  public Response getClaimStatus(@PathParam(%22invoiceNo%22) String invoiceNo) throws JSONException %7B%0A%09%09//System.out.println(%22invoiceNo:- %22+invoiceNo);%0A%09%09ConnectionManager dbCon = new ConnectionManager();%0A%09%09JSONObject jsonObject = new JSONObject(); %0A%09%09jsonObject.put(%22Claim Status%22, dbCon.checkStatus(invoiceNo));%0A%09%09//jsonObject.put(%22Check Number%22, dbCon.checkStatus(%22ERS-4400-109091%22));%0A%09%09//jsonObject.put(%22Claim Status%22, dbCon.checkStatus(%22SSCUS022009766%22));%0A%09%09//String result = %22@Produces(%5C%22application/json%5C%22) %5Cn%5Cn Output: %5Cn%5Cn%22 + jsonObject;%0A%09%09return Response.status(200).entity(jsonObject).build();%0A%09  %7D%0A%09%0A%09/*@Path(%22/convertFtoCFromInput%22)%0A%09@GET%0A%09@Produces(%22application/json%22)%0A%09public Response convertFtoCFromInput()%7B%0A%09%09JSONObject jObj= new JSONObject();%0A%0A%09%09float celsius ;%0A%09%09celsius=(45-32)*5/9;%0A%09%09jObj.put(%22F value%22, 45);%0A%09%09jObj.put(%22C Value%22, celsius);%0A%0A%09%09String result = %22@Produces(%5C%22application/json%5C%22) Output: %5Cn%5CnF to C converter Output: %5Cn%5Cn%22+jObj;%0A%09%09return Response.status(200).entity(result).build();%0A%09%7D*/  %0A%7D%0A

Create PayCheckService.java