This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
No announcement yet.
How to pass login credentials in soap header?Page Title Module
<bean id="hdmWsSecurityInterceptor" class="org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor">
<property name="securementActions" value="UsernameToken"/>
<!-- These properties are set at runtime from app properties db table
property name="securementUsername" value="Ernie"/>
<property name="securementPassword" value="Bert"/ -->
<property name="securementMustUnderstand" value="false"/>
then you can set the username & password statically in the context file as in the commented block above. Or you can set it programatically (which i do to allow such configuration to be set dynamically).