Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Exception Resolvers

  1. #11
    Join Date
    Sep 2006
    Location
    Germany
    Posts
    73

    Default

    Arjen,

    sorry for the long delay, I didn't see your reply, first.

    In SoapUI I see the following warning when Authentication fails:
    Thu Dec 06 08:50:32 CET 2007:WARN:Missing matching Fault in wsdl for bindingOperation [Person]


    On the server side I get usual acegi warnings:

    2007-12-06 08:50:31,230 [TP-Processor3] [127.0.0.1: 7BE937F424861A2E0AC65D864BC6FD04] WARN org.acegisecurity.event.authentication.LoggerListe ner - Authentication event AuthenticationFailureBadCredentialsEvent: xxx@yyy.com; details: null; exception: Bad credentials
    06.12.2007 08:50:31 com.sun.xml.wss.impl.filter.AuthenticationTokenFil ter getUserNameTokenFromMessage
    SCHWERWIEGEND: WSS1408: UsernameToken Authentication Failed
    2007-12-06 08:50:31,230 [TP-Processor3] [127.0.0.1: 7BE937F424861A2E0AC65D864BC6FD04] WARN org.springframework.ws.soap.security.xwss.XwsSecur ityInterceptor - Could not validate request: com.sun.xml.wss.impl.WssSoapFaultException: Authentication of Username Password Token Failed; nested exception is com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.impl.WssSoapFaultException: Authentication of Username Password Token Failed

  2. #12

    Question

    Hi,

    I am new to spring ws. i want to add custom validation errors for soap validation error.

    i have tried like this,

    Endpoint added
    public boolean resolveException (MessageContext messagecontext, Object obj,
    Exception exception)
    {
    System.out.println("resolveException");
    // TODO Auto-generated method stub
    return false;
    }

    in spring.xml

    <bean id="exceptionResolver"
    class="org.springframework.ws.soap.server.endpoint .SoapFaultMappingExceptionResolver">
    <property name="defaultFault" value="SERVER" />
    <property name="exceptionMappings">
    <props>
    <prop key="org.springframework.oxm.ValidationFailureExce ption">
    CLIENT, Invalid request client</prop>
    <prop key="org.springframework.oxm.ValidationFailureExce ption">
    SERVER, Invalid request server</prop>
    </props>
    </property>
    <property name="mappedEndpoints">
    <set>
    <value>echoEndpoint</value> </set>
    </property>

    </bean>

    <bean id="echoPayloadMapping"
    class="org.springframework.ws.server.endpoint.mapp ing.PayloadRootQNameEndpointMapping">
    <property name="mappings">
    <props>
    <prop key="{http://www.publishing.org/spedySchema}spedy">echoEndpoint</prop>
    </props>
    </property>
    </bean>


    while i am trying to tun saaj client class, its returns soap fault message instead of custom fault message.

    Please suggest me, where i doing mistake?

    Thanks in advance

    Thanks & Regards,
    Revathy Palani.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •