I have my POJO annotated with @Endpoint
and @Payloadroot
and I have PayloadRootAnnotationMethodEndpointMapping
in by spring configuration file but I am getting error 开发者_如何学Python"no adapter found".
You need both an EndpointMapping
(which tells Spring-WS which endpoint to invoke), and also an EndpointHandler
(which tells Spring-WS how to invoke it).
You have the first one (the PayloadRootAnnotationMethodEndpointMapping
), but you also need an EndpointHandler
, such as a PayloadMethodEndpointAdapter
.
From Spring-WS 2.0 onwards, you can just declare <sws:annotation-driven/>
, and it'll all be taken care of (see docs for details).
精彩评论