Hello Sergey, we did a little complex solution for it and because of that, I liked to ask here.
We basically extended the JAXBElementProvider, added a property for a org.apache.cxf.jaxrs.utils.schemas.SchemaHandler implementation, modified the get/setSchema methods to use this SchemaHandler, which itself has a property for a org.w3c.dom.ls.LSResourceResolver, which uses a org.apache.xerces.util.XMLCatalogResolver. Do you really want this piece of code? Best regards, Marko Am 21.06.2012 13:27, schrieb Sergey Beryozkin: > Hi > On 21/06/12 11:53, Voß, Marko wrote: >> Hello, >> >> so we have to implement our own way to get XML catalog working, right? We >> already did that but I thought there is an >> easier way. >> > There will be an easier way :-), I just have not had any time yet to look > into it yet. What you did, is that similar to > the way CXF manages its jaxws-catalog.xml ? If yes - please provide a patch, > otherwise I'll look into it asap > > Cheers, Sergey >> >> Best regards, >> Marko >> >> -----Original Message----- >> From: Voß, Marko [mailto:[email protected]] >> Sent: Wednesday, June 20, 2012 1:51 PM >> To: Sergey Beryozkin; [email protected] >> Subject: RE: How to setup XML catalog for JAX-RS services? >> >> Hello Sergey, >> >> We need JAXB to validate incoming and outgoing XML. Since our schemas may >> have many imports, they should be loaded >> from the local files system ideally. This increases the performance. >> >> >> Best regards, >> Marko >> >> >> -----Original Message----- >> From: Sergey Beryozkin [mailto:[email protected]] >> Sent: Wednesday, June 20, 2012 11:42 AM >> To: [email protected] >> Cc: Voß, Marko >> Subject: Re: How to setup XML catalog for JAX-RS services? >> >> Hi Marko >> On 19/06/12 18:24, Voß, Marko wrote: >>> Hello, >>> >>> I cannot find any documentation about this. >>> >>> Searching the web I found that one has to put a jax-ws-catalog.xml to the >>> /META-INF directory. >>> >>> There is also a catalog.xml according to the checkin history here: >>> >>> https://issues.apache.org/jira/browse/CXF-1112?page=com.atlassian.jira >>> .plugin.system.issuetabpanels:all-tabpanel >>> >>> >>> We are using JAX-RS. So how to setup a XML catalog? >>> >> At the moment setting a catalog only works with a wadl-to-java tool, can you >> explain please why it is required in your >> case ? >> >> Cheers, Sergey >>> >>> Best regards, >>> Marko ------------------------------------------------------- Fachinformationszentrum Karlsruhe, Gesellschaft für wissenschaftlich-technische Information mbH. Sitz der Gesellschaft: Eggenstein-Leopoldshafen, Amtsgericht Mannheim HRB 101892. Geschäftsführerin: Sabine Brünger-Weilandt. Vorsitzender des Aufsichtsrats: MinDirig Dr. Thomas Greiner.
