Hi,
i have more than one schema which PayloadValidatingInterceptor should use.
The JAXB marshaller have an schemas element, something similar would be nice for the PayloadValidatingInterceptor.
Cheers,
Ingo
Hi,
i have more than one schema which PayloadValidatingInterceptor should use.
The JAXB marshaller have an schemas element, something similar would be nice for the PayloadValidatingInterceptor.
Cheers,
Ingo
You're right. Could you create an issue? Thanks!
Arjen,
I'm using the schemas property on the PayloadValidationInterceptor but it only validates payload request correctly for the first XSD schema location defined in the list.
<property name="interceptors">
<list>
<bean
class="org.springframework.ws.soap.server.endpoint .interceptor.PayloadValidatingInterceptor">
<property name="schemas">
<list>
<value>
/WEB-INF/xsd/PaymentSubmission.xsd
</value>
<value>
/WEB-INF/xsd/Notifications.xsd
</value>
</list>
</property>
<property name="validateRequest" value="true" />
<property name="validateResponse" value="true" />
</bean>
</list>
</property>
If I switch the order than the FileSubmission Web Services works well and visa versa. Could it be that it's because the two XSD schemas share the same target namespace?
I looked a bit in the source code but I could not locate why I'm having this strange behavior. A solution could be to just put them together in one XSD shema. Sadly I didn't make the WSDL definitions where I extracted these XSD schemas from.
Kind regards,
Mark
Which version of the JDK are you using?
I'm using JDK 1.5
For now, I put both schema definition elements that share the same namespace together in one XSD file. I used the schema property instead of the schemas property and that works ofcourse.
Mark
really, please tell what is the status of this problem?
There is no JIRA issue yet, as far as I know.
should we create one (or two)?
Please create an issue here: http://opensource.atlassian.com/proj...ing/browse/SWS. Make sure to attach the multiple schema files which show the problem, if possible.