On 03/20/2013 01:57 PM, Richard Senior wrote:
Sorry if that was a bit long winded... Two short questions : 1) Why is it that cxf-codegen-plugin produces valid classes without complaint but at runtime, schema validation fails.
I would guess validation is done then because validation also takes into account the values passed into the SOAP messages, and those aren't known at compile time.
2) Why is schema validation occuring at runtime at all... when instantiating a jaxws:endpoint since the classes are already generated?
It can normally be shut off ( http://www.jroller.com/gmazza/entry/soap_xml_schema_validation), but I don't know whether this particular error you're getting is a rule that would always be checked regardless (if it's done by the Oracle JAXB jar that CXF uses but does not have much control over, for example).
3) does the schema prohibit the 'use' attribute when it is used on a any subobject of 'complex type' So to be clear, it is used in my case on a simplecontent object that is buried within a complex type.
Best way is to just test it with a minimal WSDL. Glen
-- View this message in context: http://cxf.547215.n5.nabble.com/Schema-validation-errors-on-publish-top-level-elements-may-not-have-a-use-tp5724860p5724892.html Sent from the cxf-user mailing list archive at Nabble.com.
