sresult.setResponseCode(getErrorCode());
sresult.setResponseMessage(getError());
sresult.setResponseData(e.getMessage().getBytes());
sresult.setSuccessful(false);
}
if ( !tr.wasSuccessful() ){
sresult.setSuccessful(false);
StringBuffer buf = new StringBuffer();
buf.append( getFailure() );
Enumeration en = tr.errors();
while (en.hasMoreElements()){