Skip to content

PayloadValidatingInterceptor ignores schema list [SWS-176] #330

Closed
@gregturn

Description

@gregturn

deno vichas opened SWS-176 and commented

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>

Affects: 1.0

Referenced from: commits ec66469

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions