Skip to content

Commit 1adafaa

Browse files
committed
SWS-293
1 parent 4abc3f2 commit 1adafaa

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

security/src/main/java/org/springframework/ws/soap/security/AbstractWsSecurityInterceptor.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,18 @@ public final boolean handleResponse(MessageContext messageContext, Object endpoi
136136
return true;
137137
}
138138
catch (WsSecuritySecurementException ex) {
139-
return handleSecurementException(ex, messageContext);
139+
boolean result = handleSecurementException(ex, messageContext);
140+
if (!result) {
141+
messageContext.clearResponse();
142+
}
143+
return result;
140144
}
141145
catch (WsSecurityFaultException ex) {
142-
return handleFaultException(ex, messageContext);
146+
boolean result = handleFaultException(ex, messageContext);
147+
if (!result) {
148+
messageContext.clearResponse();
149+
}
150+
return result;
143151
}
144152
}
145153
else {

0 commit comments

Comments
 (0)