【问题标题】:No endpoint mapping found for [SaajSoapMessage , exception during SOAP WS execution找不到 [SaajSoapMessage 的端点映射,SOAP WS 执行期间出现异常
【发布时间】:2020-04-27 15:41:26
【问题描述】:

我是使用 String 进行 SOAP Web 服务开发的新手。

我按照以下流程使用 Spring 创建了一个 Soap Web 服务 https://spring.io/guides/gs/producing-web-service/

错误信息: 2020-04-27 20:53:31.979 警告 4860 --- [nio-8080-exec-4] os.ws.server.EndpointNotFound : 未找到 [SaajSoapMessage {http://opnt.com.si/opnt/OnGSSNorBodGateway/}FeasibilityCheck]

的端点映射

端点类:

@端点 公共类 NltProcessEndpoint{

private static final String NAMESPACE1 = "http://opnt.com.si/opnt/OnGSSNorBodGateway";

@Autowired
private NltService service;
@PayloadRoot(namespace = NAMESPACE1, localPart = "FeasibilityCheck")
@ResponsePayload
public FeasibilityCheckResponse getResponseMessage(@RequestPayload FeasibilityCheckRequest request) {
    FeasibilityCheckResponse feasibilityResponse = new FeasibilityCheckResponse();
    feasibilityResponse = service.checkFeasibility(request);
    return feasibilityResponse;
}           

}

如果需要,我可以分享我的代码。

【问题讨论】:

  • 您应该包含您正在使用的代码的相关部分。

标签: java spring web-services soap endpoint


【解决方案1】:

XSD 的命名空间和端点类不匹配,导致错误发生。

在 ENDPOINT 类中 NAMESPACE1 = "http://opnt.com.si/opnt/OnGSSNorBodGateway"

在 XSD 中 targetNamespace = "http://opnt.com.si/opnt/OnGSSNorBodGateway/"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-12-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-05
    • 2016-09-15
    • 1970-01-01
    相关资源
    最近更新 更多