[SWS-471] Invalid xml in SoapFaultMappingExceptionResolver example, section 5.6.1 Created: 24/Dec/08  Updated: 04/May/12  Resolved: 12/Jan/09

Status: Closed
Project: Spring Web Services
Component/s: Documentation
Affects Version/s: 1.5.5
Fix Version/s: 1.5.6

Type: Bug Priority: Minor
Reporter: Brad Hendricks Assignee: Arjen Poutsma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Section 5.6.1 has invalid xml for its example of how to configure the exceptionMappers for SoapFaultMappingExceptionResolver:

<beans>
    <bean id="exceptionResolver"
        class="org.springframework.ws.soap.server.endpoint.SoapFaultMappingExceptionResolver">
        <property name="defaultFault" value="SERVER">
        </property>
        <property name="exceptionMappings">
            org.springframework.oxm.ValidationFailureException=CLIENT,Invalid request
        </property>
    </bean>
</beans>

Should be

<beans>
    <bean id="exceptionResolver"
        class="org.springframework.ws.soap.server.endpoint.SoapFaultMappingExceptionResolver">
        <property name="defaultFault" value="SERVER">
        </property>
        <property name="exceptionMappings">
          <value>
            org.springframework.oxm.ValidationFailureException=CLIENT,Invalid request
          </value>
        </property>
    </bean>
</beans>



 Comments   
Comment by Brad Hendricks [ 24/Dec/08 ]

Eh, maybe "Major" isn't the best priority for this.

Comment by Arjen Poutsma [ 12/Jan/09 ]

Used wiki formatting

Comment by Arjen Poutsma [ 12/Jan/09 ]

Thanks for spotting this, it's fixed now.

In the future, could you please add a little note telling me what part changed? It took me 5 minutes and the help of Tareq, to spot the diff between the first and second snippet .

Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Mon Dec 18 11:03:59 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.