SuggestionResponse suggestionResponse = unwrapResponse(SuggestionResponse.class, soapResponse);
return suggestionResponse.getSuggestion();
}
private Loan attemptLoan(String isbn) throws Exception {
LoanRequest loanRequest = new LoanRequest();
loanRequest.setIsbn(isbn);
String soapRequest = wrapRequest(_LoanRequest_QNAME, LoanRequest.class, loanRequest, null);
String soapResponse = _httpMixIn.postString("http://localhost:" + _port + "/loan/LoanService", soapRequest);
LoanResponse loanResponse = unwrapResponse(LoanResponse.class, soapResponse);
return loanResponse.getLoan();
}