Spring WS注释端点

时间:2014-01-14 11:34:10

标签: spring web-services spring-ws

我必须从springws 2.0中替换已弃用的类AbstractMarshallingPayloadEndpoin t。我的班级正在扩展并覆盖invokeInternal方法,如下所示。

示例:

public class UpdateUserEndpoint extends AbstractMarshallingPayloadEndpoint {

    @Override
    protected Object invokeInternal(Object request){
    //MY BUSINESS LOGIC here.
    }
}

我正在尝试用端点注释替换我的类。

@PayloadRoot(localPart = "MyRequest", namespace = "MyNamespace")
public MyResponse updateUser(MyRequest request) { ... }

当服务器启动BeanCreationException时,我最终会遇到异常: 我在映射中使用Castor marshaller和unmarshaller。 需要一些想法以正确的方式进行。

0 个答案:

没有答案