Hi,
I know this is a common question, but I couldn't find a simple answer
for this.
Basically what I want to do is to validate the input of my RESTful web
service.
What I have is this camel context :
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<from
uri="cxfrs:///?resourceClasses=server.webservice.RestComputationService"/>
<bean ref="aBean"/>
<!-- other beans -->
<!-- ... -->
</route>
</camelContext>
with RestComputationService "implemented" as this :
public class RestComputationService implements ComputationService {
@POST
@Path("/computation")
@Consumes("text/xml")
@Produces("text/xml")
@Override
public Response compute(Request request) {
return null;
}
}
Request and Response classes are created from a schema with JAXB.
How can I use the validation against the payload when doing JAXB
unmarshalling ?
Thanks in advance.
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.