Just to follow this issue :
How can I turn on schema validation from spring configuration :

  <jaxws:endpoint address="/donneesClient"
implementor="#donneesclientEndPoint"
wsdlLocation="WEB-INF/wsdl/donneesClient_v1.0.wsdl" />


I also am realy surprized the type converter that receives an invalid String
from XML Stream for an expected date doesn't throw an exception or even logs
an error. This is not just about validating the schema, but about conversion
error...

Nicolas

2008/12/10 Daniel Kulp <[email protected]>

> On Wednesday 10 December 2008 9:08:47 am nicolas de loof wrote:
> > Hi
> >
> > A collegue of mine reported me it's CXF service didn't failed when
> sending
> > a SOAP request with malformed xs:dateTime value, but just set
> > XMLGregorianCalendar to null. I can't confirm this as beeing at Devoxx, I
> > can't review the code.
> >
> > Is this the expected behaviour ? Maybe type converter can optionnaly
> throw
> > exception on converstion failure using some configuration option ?
>
> By default, we don't validate the incoming XML.   You could turn on the
> schema
> validation which SHOULD catch this and throw a fault.
>
> --
> Daniel Kulp
> [email protected]
> http://dankulp.com/blog
>

Reply via email to