My problem is quite the same as is asked in this other question: "How to use Spring Autowired in a custom cxf interceptor?". The valid response there recommends to configure the endpoint through context xml:
<jaxws:endpoint id="myWebService" address="/MyWebService">
<jaxws:inInterceptors>
<ref bean="myInInterceptor" />
</jaxws:inInterceptors>
</jaxws:endpoint>
But I want to to it completely without xml configurations, only by annotation. Is it possible somehow to add an interceptor (which is a spring bean with autowired members) to a @WebService endpoint through the annotation @InInterceptors. Or is there another way?