Hello, This is a pretty random question...
I create some service code from a WSDL using the maven codegen tool. Then I use the jaxws:endpoint tag to create a service endpoint.. All compiles and builds ok... But when I try to deploy I get : org.apache.ws.commons.schema.XmlSchemaException: Top-level attributes may not have a 'use' Now.. it seems that one of the XSD's used by the wsdl has an attribute named 'use' in it, this is a legitimate attribute that specifies whether something is required or not. I think somehow this is getting confused with the wsdl 'use' attribute which has to do with 'document literal' etc. I created my own bean that creates an EndpointImpl and calls publish manually but I get the same error. This is sensitive so I cannot really publish the wsdl here.. but if someone can help I should be able to provide something.. Here's hoping someone knows straight away what the problem is... -- View this message in context: http://cxf.547215.n5.nabble.com/Schema-validation-errors-on-publish-top-level-elements-may-not-have-a-use-tp5724860.html Sent from the cxf-user mailing list archive at Nabble.com.
