spring ws - PayloadRootAnnotationMethodEndpointMapping not working -
i have pojo annotated @endpoint
, @payloadroot
, have payloadrootannotationmethodendpointmapping
in spring configuration file getting error "no adapter found".
you need both endpointmapping
(which tells spring-ws which endpoint invoke), , endpointhandler
(which tells spring-ws how invoke it).
you have first 1 (the payloadrootannotationmethodendpointmapping
), need endpointhandler
, such payloadmethodendpointadapter
.
from spring-ws 2.0 onwards, can declare <sws:annotation-driven/>
, , it'll taken care of (see docs details).
Comments
Post a Comment