Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-471

Invalid xml in SoapFaultMappingExceptionResolver example, section 5.6.1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.5
    • Fix Version/s: 1.5.6
    • Component/s: Documentation
    • Labels:
      None

      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>

        Activity

        Hide
        bhendricks Brad Hendricks added a comment -

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

        Show
        bhendricks Brad Hendricks added a comment - Eh, maybe "Major" isn't the best priority for this.
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Used wiki formatting

        Show
        arjen.poutsma Arjen Poutsma added a comment - Used wiki formatting
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        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 .

        Show
        arjen.poutsma Arjen Poutsma added a comment - 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 .
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing old issues

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing old issues

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            bhendricks Brad Hendricks
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: