Код: Выделить всё
@WebMethod(action = "sendRequest")
@WebResult(partName= "message")
public String addRequest(@WebParam(partName = "firstName") String firstName,
@WebParam(partName = "lastName") String lastName, @WebParam(partName = "jmbg") long jmbg,
@WebParam(partName = "dateTime") Date dateTime) {
try {
appointmentManager.getAppointmentRequest().add(new AppointmentRequest(firstName, lastName, jmbg, dateTime));
return "Central office is closed due to the reconstruction. It will reopen on Monday.";
} catch (Exception e) {
return "Wrong format";
}
}`
Код: Выделить всё
`
Подробнее здесь: https://stackoverflow.com/questions/405 ... ot-working
Мобильная версия