Hi Glen, thanks for the response. So this is my xsd for example: <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/schema" xmlns:tns="http://www.example.org/schema" elementFormDefault="qualified"> <element name="validationMessage" type="tns:ValidationMessage" /> <element name="validationBody" type="tns:ValidationBody" /> <element name="validationHead" type="tns:ValidationHeader" /> <element name="validationResponse" type="string" /> <complexType name="ValidationHeader"> <sequence> <element name="head1" type="double"></element> <element name="head2" type="string"></element> </sequence> </complexType> <complexType name="ValidationBody"> <sequence> <element name="body1" type="double"></element> <element name="body2" type="tns:restrictionType"></element> </sequence> </complexType> <complexType name="ValidationMessage"> <sequence> <element name="header" type="tns:ValidationHeader" /> <element name="body" type="tns:ValidationBody" /> </sequence> </complexType> <simpleType name="restrictionType"> <restriction base="string"> <pattern value="[0-9]{5}" /> </restriction> </simpleType> </schema>
But no matter what values I send in the head1 and head2 fields the message is sent fine. If I put the wrong value in the body on the other hand, it works as expected and I get the schema error. Eva -- View this message in context: http://cxf.547215.n5.nabble.com/Schema-validation-is-not-validating-elements-from-SoapHeader-tp4705565p4705676.html Sent from the cxf-user mailing list archive at Nabble.com.
