Thank you for your continued patience..

Maven codegen produced an interface.. I implement that interface (eclipse
automatically copies the annotations from the interface, so the @WebService,
@XmlSeeAlso, @SoapBinding ... and the method annotations WebResult and
WebMethod)

My spring config is like this :

<bean id="blahServiceImpl" class="com.blah.blahImpl">
            <property name="businessLogicBean" ref="businessLogicBean />
    </bean>
   
    <jaxws:endpoint id="myService" address="/1.0" wsdlLocation="">        
        <jaxws:implementor><ref
local="blahServiceImpl"/></jaxws:implementor>
    </jaxws:endpoint>

So, In the implementation class (com.blah.blahImpl), I inject my business
logic bean (which I have no annotated with @XmlTransient)
In the webmethod method I do :
*call business logic
*compile and return response object

Am I doing this right?
If I strip the annotations off my implementation class it all deploys and
works.. but that also doesn't seem right? I think this stops the service
from appearing in the weblogic console also?
Do I need some sort of abstraction (a wrapper I believe it's called?) or can
I just create a spring bean from my implementation as I am doing?



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

Reply via email to