コード例 #1
0
 @WebMethod(operationName = "createInstallation")
 public String createInstallation(Installation i) {
   try {
     ExecutionResult<Installation> result = ibl.createInstallation(i);
     if (result.isSuccess()) {
       return "Installation created!";
     } else {
       return "Installation not created!";
     }
   } catch (BLException err) {
     return "Error while creating installation! " + err.toString();
   }
 }
コード例 #2
0
 @WebMethod(operationName = "createCustomer")
 public String createCustomer(Customer c) {
   try {
     ExecutionResult<Customer> result = cbl.createCustomer(c);
     if (result.isSuccess()) {
       return "Customer created!";
     } else {
       return "Customer not created!";
     }
   } catch (BLException err) {
     return "Error while creating customer! " + err.toString();
   }
 }