Skip to content

Commit c15a913

Browse files
committed
Using XsdSchema rather than Resources for validation.
1 parent b96c3e9 commit c15a913

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/airline/src/main/resources/org/springframework/ws/samples/airline/ws/applicationContext-ws.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<list>
7474
<bean class="org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor"/>
7575
<bean class="org.springframework.ws.soap.server.endpoint.interceptor.PayloadValidatingInterceptor">
76-
<property name="schemas" value="/messages.xsd"/>
76+
<property name="xsdSchemaCollection" ref="schemaCollection"/>
7777
<property name="validateRequest" value="true"/>
7878
<property name="validateResponse" value="true"/>
7979
</bean>

samples/echo/src/main/webapp/WEB-INF/spring-ws-servlet.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
This interceptor validates both incoming and outgoing message contents according to the 'echo.xsd' XML
2929
Schema file.
3030
</description>
31-
<property name="schema" value="/WEB-INF/echo.xsd"/>
31+
<property name="xsdSchema" ref="schema"/>
3232
<property name="validateRequest" value="true"/>
3333
<property name="validateResponse" value="true"/>
3434
</bean>

0 commit comments

Comments
 (0)