未找到[SajSoapMessage的终结点映射,SOAP WS执行期间出现异常



我是使用String开发SOAP web服务的新手。

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

错误消息:2020-04-27 20:53:31.979 WARN 4860-[nio-8080-exec-4]o.s.ws.server.EndpointNotFound:未找到[SajSoapMessage的端点映射{http://opnt.com.si/opnt/OnGSSNorBodGateway/}可行性检查]

端点类:

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

}

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

XSD的命名空间和端点类不匹配,因此出现错误。

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

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

最新更新