Hi, The WSS policy for server says: <wsp:Policy wsu:Id="myPolicy"> <wsp:ExactlyOne> <wsp:All> <wsoma:OptimizedMimeSerialization />
So the mtom is turned on. The out message body must be signed and encrypted. The server not yet encrypted response has got a base64binary element and when mtom is on, the serializer puts the content of this element to the attachment (with a "Include" reference). Next, the message is signed and encrypted, but not the attachment. I am little bit confused, cause the above WSS policy tells to optimize the message for the encrypted message and not the message before encryption. However, I had to turn off mtom (mtom-enabled=false) before the BareOutInterceptor and turn it on again after (with a interceptor). After this it worked like expected. The base64binary element were not attached and the encrypted message is still mtom optimized and the cipherValues are attached as expected. Is there any better solution than putting an inteceptor before and after the BareOutInterceptor? -- View this message in context: http://cxf.547215.n5.nabble.com/No-mtom-before-message-encryption-tp5761406.html Sent from the cxf-user mailing list archive at Nabble.com.