未找到[SaajSoapMessage的端点映射,SOAP WS执行期间发生异常

问题描述 投票:0回答:1

我是使用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] o.s.ws.server.EndpointNotFound:找不到[SaajSoapMessage]的终结点映射> {http://opnt.com.si/opnt/OnGSSNorBodGateway/}可行性检查]

端点类:

@ Endpoint公共类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;
}           

}

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

我是使用String进行SOAP Web服务开发的新手。我遵循以下过程使用Spring https://spring.io/guides/gs/production-web-service/创建Soap Web服务错误消息:...

java spring web-services soap endpoint
1个回答
0
投票

由于错误而导致XSD的命名空间和终结点类不匹配。

© www.soinside.com 2019 - 2024. All rights reserved.