Here's relevant sections of my configuration:
Code:
<bean id="securityInterceptor"
class="org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor">
<property name="validationActions" value="UsernameToken" />
<property name="validationCallbackHandler" ref="springSecurityHandler" />
<property name="secureResponse" value="false" />
<property name="validateRequest" value="true" />
</bean>
<bean id="springSecurityHandler"
class="org.springframework.ws.soap.security.wss4j.callback.SpringPlainTextPasswordValidationCallbackHandler">
<property name="authenticationManager" ref="authenticationManager" />
</bean>
<bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager">
<property name="providers">
<bean
class="org.springframework.security.providers.dao.DaoAuthenticationProvider">
<property name="userDetailsService" ref="userDetailsService" />
</bean>
</property>
</bean>
...
<bean id="annotationMapping"
class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping">
<property name="defaultEndpoint" ref="courseRosterEndpoint" />
<property name="interceptors">
<list>
<ref bean="securityInterceptor" />
</list>
</property>
</bean>
<bean id="exceptionResolver"
class="org.springframework.ws.soap.server.endpoint.SoapFaultMappingExceptionResolver">
<property name="defaultFault" value="SERVER" />
<property name="exceptionMappings">
<value>
org.springframework.oxm.ValidationFailureException=CLIENT,Invalid request
org.springframework.security.AuthenticationServiceException=SERVER,Service temporarily unavailable
org.springframework.security.BadCredentialsException=CLIENT,Authentication failed
org.springframework.dao.DataAccessException=SERVER,Service temporarily unavailable
org.springframework.jdbc.CannotGetJdbcConnectionException=SERVER,Service temporarily unavailable
java.lang.IllegalArgumentException=CLIENT,One or more of your arguments is invalid
service.PersonNotFoundException=CLIENT,Person not found
service.CourseSectionNotFoundException=CLIENT,Course Section either doesn't exist or is not within account scope
security.AuthorizationFailureException=CLIENT,Your account is not authorized to request this method
java.lang.Exception=SERVER,A server error occurred
</value>
</property>
</bean>