Announcement Announcement Module
No announcement yet.
Spring web service security using wss4jSecurityInterceptor Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring web service security using wss4jSecurityInterceptor

    Hi Team Members,

    here we are facing unusual problem with spring web service security.
    we have implemented spring webservice using
    and we configured application-config/spring-ws-servlet.xml files like below given way


    <bean class=" ing.PayloadRootAnnotationMethodEndpointMapping">
    <property name="interceptors">
    <ref local="wsSecurityInterceptor" />
    <bean id="wsSecurityInterceptor"
    class=" Wss4jSecurityInterceptor" >
    <property name="validationActions" value="UsernameToken" />
    <property name="validationCallbackHandler" ref="passwordValidationHandler" />
    <bean id="passwordValidationHandler"
    class=" callback.SimplePasswordValidationCallbackHandler">
    <property name="users">
    <prop key="${webservice.username}">

    <sws:annotation-driven />

    <context:component-scan base-package="" />

    <sws:static-wsdl location="WEB-INF/classes/wsdl/sample_weservice.wsdl" />

    <bean id="wsDelegateInterface"
    class=" iceImpl" />

    web service is working fine , we don't have any issue with web service.

    only issue we are having is with security. when we are trying to execute the web service using SOAP UI. its working without username/password . we are looking to write a secured web service, could somebody tell us why this configuration is not working and please help us to achieve secured web service using wss4j.

    Thanks in advance