cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: [JAX-RS] Schema validation
Date Tue, 13 Jul 2010 22:29:02 GMT
Hi

The current workaround is to list all the schemas upfront in the right
order, ex, if A.xsd imports B.xsd & C.xsd then B.xsd & C.xsd should be
listed first (in any order) and A.xsd should be listed last.

For example, this schema :
http://svn.apache.org/repos/asf/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/resources/book.xsd

is loaded like this :

<util:list id="theSchemas">
<value>classpath:/WEB-INF/schemas/bookid.xsd</value>

<value>
classpath:/org/apache/cxf/systest/jaxrs/resources/book.xsd
</value>
</util:list>

see
http://svn.apache.org/repos/asf/cxf/trunk/systests/jaxrs/src/test/resources/jaxrs/WEB-INF/beans.xml

cheers, Sergey

On Mon, Jul 12, 2010 at 10:50 AM, Glen Mazza <glen.mazza@gmail.com> wrote:

>
>
> Vlad Isajkin wrote:
> >
> > Is there any "non-hacking" way to enable setting schemas that includes
> > nested schema with the same namespace?
> >
>
> Yes, please check out the TRUNK/HEAD version of the source and submit a
> code
> patch (diff file) to https://issues.apache.org/jira/browse/CXF so our
> resident JAX-RS expert can review it and apply it to the codebase.
>
> Thanks,
> Glen
>
> [1] http://cxf.apache.org/source-repository.html
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/JAX-RS-Schema-validation-tp1046229p1046276.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message