From 51d615f310eab5799bfa6105aa01854b11a64761 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Fri, 12 Apr 2013 11:53:22 +0200 Subject: [PATCH] Set BSPComplian on WSHandler Setting bspCompliant = false has effect only for first request, setting it on the handler fixes this. Issue: SWS-828 --- .../ws/soap/security/wss4j/Wss4jSecurityInterceptor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java b/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java index 64ab0c5e..7a27a7aa 100755 --- a/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java +++ b/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java @@ -466,6 +466,7 @@ public class Wss4jSecurityInterceptor extends AbstractWsSecurityInterceptor impl * Set the WS-I Basic Security Profile compliance mode. Default is {@code true}. */ public void setBspCompliant(boolean bspCompliant) { + this.handler.setOption(WSHandlerConstants.IS_BSP_COMPLIANT, true); this.bspCompliant = bspCompliant; }