Пример #1
0
 public void createGood(@WebParam(name = "good") GoodWrapper good) throws WebServiceException {
   try {
     validator.validate(good);
     bean.createGood(good);
   } catch (ValidatorException ex) {
     throw new WebServiceException(ex.getErrorCode(), ex.getComment());
   } catch (ServicesException ex) {
     throw new WebServiceException(ex.getErrorCode(), ex.getComment());
   }
 }