Hi Dan

I don't know if this issue is also solved but i'm still using CXF 2.7.0

I understand, but i've tested it and it doesn't work... I've done some debug
inside the interceptor and the problem relies on validateHeader().
When findHeader() is called inside validateHeader() it simply returns null,
although the SoapMessage is correct and apparently the MessagePartInfo too.
Inside findHeader() the mpi.getConcreteName() returns "RequestHeaderElement"
as localPart where it should simply return "RequestHeader". If I change the
value of concreteName in runtime through live debug to "RequestHeader"
validation is done successfuly, failing with soapfault:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
   <soap:Body>
      <soap:Fault>
         <faultcode>soap:Client</faultcode>
         <faultstring>Could not validate soapheader caused by:
org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1:
'2012-05-1T00:00:00' is not a valid value for 'dateTime'..</faultstring>
      </soap:Fault>
   </soap:Body>
</soap:Envelope>

BTW... I think the faultstring should suffer a bit of rework :P

Best regards



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Schema-validation-before-Handlers-tp5732112p5732121.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to