When trying a simple Web Service Hello World example with just one @Endpoint
annotated class, the Endpoint is not registered when using the <sws:annotation-driven/>
namespace.
However, by adding the usual <context:component-scan>
, everything works well, the Endpoint-class is registered correctly.
This is only true for the @Endpoint
annotation, all other annotations (@RequestPayload
, @ResponsePayload
, @PayloadRoot
) will be registered by the sws-namespace as expected.
Should the @Endpoint
annotation not be processed by this namespace as well?
<beans>
<!-- works for all annotations except @Endpoint -->
<sws:annotation-driven/>
<!-- when activated, @Endpoint is registered correctly <context:component-scan/> -->
</beans>