Ok so just by way of cleanup...

My problems were that :
1) An XSD referred to by my WSDL is in fact invalid, but I cannot change
it.. it's given.
2) I had let spring copy the annotations from my service interface (which
was generated by maven codegen). The annotations on your implementation
should use the "endpointInterface" attribute to refer to the interface..
3) Because of (2) the CXF bean jaxws:endpoint couldn't find the design time
wsdl, and was attempting to create a wsdl at instantiation.. it couldn't do
this because of (1).. and to compound this, it was also reflecting on beans
injected into my implementation which was causing problems. it seems that
the maven codegen tool has less strict validation than the validation used
by jaxws:endpoint

Fixes for this were 
1) Can do nothing here
2) properly specify the endpointinterface, servicename, portname and
wsdllocation in the implementation annotations
   Also add @XmlTransient to any spring injected beans in the implementation
class

This fixed my issues...

Thank you very much for your efforts..




--
View this message in context: 
http://cxf.547215.n5.nabble.com/Schema-validation-errors-on-publish-top-level-elements-may-not-have-a-use-tp5724860p5725157.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to