【问题标题】:Springs ws no Endpoint mapping found forSprings ws没有找到端点映射
【发布时间】: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


【解决方案1】:

我有问题。根据我当前的框架,我必须将 bean 声明到 springs-ws 文件中。我认为用@Endpoint 注释很简单。

【讨论】:

  • 您能改写一下吗?这是什么springs-ws 文件?
猜你喜欢
  • 2014-12-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多