开发者

PayloadRootAnnotationMethodEndpointMapping not working

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜