SWS-308 in 1.0 branch
This commit is contained in:
@@ -458,16 +458,16 @@ public class WebServiceTemplate extends WebServiceAccessor implements WebService
|
||||
* @throws IOException in case of I/O errors
|
||||
*/
|
||||
protected boolean hasError(WebServiceConnection connection, WebServiceMessage request) throws IOException {
|
||||
if (!connection.hasError()) {
|
||||
return false;
|
||||
}
|
||||
if (checkConnectionForFault && connection instanceof FaultAwareWebServiceConnection) {
|
||||
FaultAwareWebServiceConnection faultConnection = (FaultAwareWebServiceConnection) connection;
|
||||
return !(faultConnection.hasFault() && request instanceof FaultAwareWebServiceMessage);
|
||||
}
|
||||
else {
|
||||
return checkConnectionForFault;
|
||||
if (connection.hasError() && checkConnectionForFault) {
|
||||
if (connection instanceof FaultAwareWebServiceConnection) {
|
||||
FaultAwareWebServiceConnection faultConnection = (FaultAwareWebServiceConnection) connection;
|
||||
return !(faultConnection.hasFault() && request instanceof FaultAwareWebServiceMessage);
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user