Could not handle mustUnderstand headers: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security. Returning fault

You can try below config that would solve the issue. @Bean public Wss4jSecurityInterceptor securityInterceptor() { Wss4jSecurityInterceptor security = new Wss4jSecurityInterceptor(); security.setValidationActions(“NoSecurity”); security.setValidateRequest(false); security.setValidateResponse(true); return security; } @Override public void addInterceptors(List<EndpointInterceptor> interceptors) { interceptors.add(securityInterceptor()); }

Add SoapHeader to org.springframework.ws.WebServiceMessage

Basically, you need to use a WebServiceMessageCallback in your client to modify the message after its creation but before it is sent. To rest of the code has been described pretty accurately by @skaffman so the whole stuff might look like this: public void marshalWithSoapActionHeader(MyObject o) { webServiceTemplate.marshalSendAndReceive(o, new WebServiceMessageCallback() { public void doWithMessage(WebServiceMessage message) … Read more

Spring Security with SOAP web service is working in Tomcat, but not in WebLogic

I just wanted to update the alternate solution I found for this problem, for completeness. Spring Security Filter chain was not working for Weblogic, where as same was working in Tomcat, even for Weblogic version 12.2.1.4. I had followed this example, and implemented Okta filter as spring boot version was not working in Weblogic 12.2.1.4. … Read more

How to create spring-based executable jar with maven?

You can add the following configuration so that the contents of the .schema files from all the jars get appended together. <configuration> <transformers> <transformer implementation=”org.apache.maven.plugins.shade.resource.AppendingTransformer”> <resource>META-INF/spring.handlers</resource> </transformer> <transformer implementation=”org.apache.maven.plugins.shade.resource.AppendingTransformer”> <resource>META-INF/spring.schemas</resource> </transformer> </transformers> </configuration>

JAXB :Need Namespace Prefix to all the elements

Solved by adding @XmlSchema( namespace = “http://www.example.com/a”, elementFormDefault = XmlNsForm.QUALIFIED, xmlns = { @XmlNs(prefix=”ns1″, namespaceURI=”http://www.example.com/a”) } ) package authenticator.beans.login; import javax.xml.bind.annotation.*; in package-info.java Took help of jaxb-namespaces-missing : Answer provided by Blaise Doughan