camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dusausoy <bruno.dusau...@yp5.be>
Subject Re: CXFRS and XML validation
Date Thu, 26 May 2011 16:16:05 GMT
On 26/05/2011 17:15, Bruno Dusausoy wrote:

[...]
> Hi Claus,
>
> I've tried but I realized very soon that it is useless since the route
> start with the cxfrs endpoint and immediately take the payload and tries
> to unmarshall it, *before* hitting the validation component, making the
> latter useless.
>
> Maybe I should another endpoint for my route, a more complex CXF endpoint.
>
> What do you think ?
>
> Regards.

I've tried with this :

     <cxf:rsServer id="rsServer"
                   address="/">
         <cxf:schemaLocations>
 
<cxf:schemaLocation>classpath:schemas/webservice-request.xsd</cxf:schemaLocation>
         </cxf:schemaLocations>
         <cxf:serviceBeans>
             <ref bean="computationService"/>
         </cxf:serviceBeans>
     </cxf:rsServer>

     <camelContext xmlns="http://camel.apache.org/schema/spring">
         <route>
             <from uri="cxfrs://bean://rsServer"/>
             <!-- -->
         </route>
     </camelContext>

It works fine now.

Regards.
-- 
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.

Mime
View raw message