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

        bhendricks Brad Hendricks created issue -
        arjen.poutsma Arjen Poutsma made changes -
        Field Original Value New Value
        Fix Version/s 1.5.6 [ 11141 ]
        Priority Major [ 3 ] Minor [ 4 ]
        arjen.poutsma Arjen Poutsma made changes -
        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>
        Section 5.6.1 has invalid xml for its example of how to configure the exceptionMappers for SoapFaultMappingExceptionResolver:

        {code:xml}
        <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>
        {code}

        Should be

        {code:xml}
        <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>
        {code}
        arjen.poutsma Arjen Poutsma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          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: