Skip to content

Commit 8813aba

Browse files
riviargregturn
authored andcommitted
Fixed skip validation in handleResponse.
Fix skip validation in AbstractWsSecurityInterceptor.handleResponse. Resolves #157.
1 parent 2eb9c95 commit 8813aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public final boolean handleResponse(MessageContext messageContext) throws WebSer
230230
if (validateResponse) {
231231
Assert.isTrue(messageContext.hasResponse(), "MessageContext contains no response");
232232
Assert.isInstanceOf(SoapMessage.class, messageContext.getResponse());
233-
if (skipValidationIfNoHeaderPresent && !isSecurityHeaderPresent((SoapMessage) messageContext.getRequest())) {
233+
if (skipValidationIfNoHeaderPresent && !isSecurityHeaderPresent((SoapMessage) messageContext.getResponse())) {
234234
return true;
235235
}
236236
try {

0 commit comments

Comments
 (0)