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

PayloadValidatingInterceptor ignores schema list

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0.1
    • Component/s: Core
    • Labels:
      None
    • Environment:
      winXP, tomcat, eclipse 3.2, JDK 5.11 & 6.2
       

      Description

      see http://forum.springframework.org/showthread.php?t=26685

      when using more than one schema element for PayloadValidatingInterceptor it only uses the first in the list. in the example below if i send a request that needs to use the LocationService.xsd file i get "2007-08-24 10:56:28,015 WARN endpoint.interceptor.PayloadValidatingInterceptor - XML validation error on request: cvc-elt.1: Cannot find the declaration of element 'm:GetDistanceRequest'.: m:GetDistanceRequest' is a root element of the LocationService.xsd file.

      <property name="schemas">
      <list>
      <value>/WEB-INF/xsd/VehicleLookupService.xsd</value>
      <value>/WEB-INF/xsd/LocationService.xsd</value>
      </list>
      </property>

        Attachments

          Activity

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              denov deno vichas
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: