Hi,

It's really a schema issue,  your schema is apparently missing a global 
RootElement declaration

Ex :

<ns:RootElement xmlns:ns=http://foo/>

but the schema you provided is missing <xs:element name="RootElement" type="tns:rootElementType"/> (assuming a complex type is global)

cheers, Sergey
----- Original Message ----- From: "javamustang" <[email protected]>
To: <[email protected]>
Sent: Wednesday, July 01, 2009 2:35 PM
Subject: Re: xsd Validation and CXFNonSpringJaxrsServlet and ssl



Hi Sergey,

Thanks very much.

With ElementProvider i get much further now, because now i get following
message:
JAXBException occurred : cvc-elt.1: Cannot find the declaration of element
'RootElement'.

It seems to me the xsd is read in fine (because when its not wel formatted,
i get message at startup that validation is disabled).
Could it be my xml - sended from soapUI - needs some header
declarations/link to the xsd File? (I looked in to your example some input
xml like addbook2 have xmlns link to the xsd).
Does the xsd-File need to have only 1 root element so that validation works?

Many thanks for all, MAx
--
View this message in context: 
http://www.nabble.com/xsd-Validation-and-CXFNonSpringJaxrsServlet-and-ssl-tp24202869p24289898.html
Sent from the cxf-user mailing list archive at Nabble.com.


Reply via email to