开发者

PayloadRootAnnotationMethodEndpointMapping not working

开发者 https://www.devze.com 2023-03-05 16:40 出处:网络
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 fo

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消