【发布时间】:2017-03-10 14:28:48
【问题描述】:
所以我遇到了这个试图访问我的 Web 服务的错误
No endpoint mapping found for [SaajSoapMessage {http://www.example.org/Fta_Consumption/Interface/}triggerFTARequest
我的 Endpoint 类看起来像
@Endpoint
public class TriggerFtaEndPoint {
private static final String NAMESPACE_URL = "http://www.example.org/Fta_Consumption/Interface/";
@PayloadRoot(localPart = "triggerFTARequest", namespace = NAMESPACE_URL)
@ResponsePayload@Transactional(propagation=Propagation.REQUIRED)
public TriggerFTAResponse triggerFta(@RequestPayload TriggerFTARequest request, MessageContext messageContext) {
所以在问这个问题之前,我尝试通过链接
No endpoint mapping found when setting up Spring Web Service
但我仍然无法弄清楚我的问题。一切似乎都已到位,但仍然无法找出问题所在。
【问题讨论】:
-
尝试在“...Interface/”之后不带尾随'/'
-
我遇到了问题。根据我当前的框架,我必须将 bean 声明为 springs-ws 文件。我认为用
@Endpoint注释很简单。
标签: java web-services soap spring-ws endpoint