如何使用spring WS为具有相同命名空间和本地部分的请求编写多个端点?

时间:2017-12-12 11:23:43

标签: java spring web-services spring-ws

这是我的示例代码

@Endpoint
public class NotificationEndPoint {

    private static final String NAMESPACE_URI = "http://soap.sforce.com/2005/09/outbound";


    @PayloadRoot(namespace = NAMESPACE_URI, localPart = "notifications")
    @SoapAction("Events")
    @ResponsePayload
    public NotificationsResponse handleEventRequest(@RequestPayload Notifications notificationsRequest) throws Exception {}

}

1 个答案:

答案 0 :(得分:0)

我能够找到一个类似的问题,执行起来有点过于棘手,但我会尝试。任何寻找类似问题的人都可以试试这个。

How can i have two separate web services with identical name space and local name requests be routed to different end points?