找不到[saajsoapmessage exchangemessagerequest]的终结点Map

b91juud3  于 2021-07-24  发布在  Java
关注(0)|答案(0)|浏览(195)

我已经设置了两个spring引导应用程序。其中第一个包括soap客户端:

public ExchangeMessageResponse exchangeMessage(Message message) {

    ExchangeMessageRequest request = new ExchangeMessageRequest();
    request.setMessage(message);

    ExchangeMessageResponse response = (ExchangeMessageResponse) getWebServiceTemplate().marshalSendAndReceive("http://localhost:8082/ws/message-soap.wsdl",
            request, new SoapActionCallback("http://www.example.com/message/ExchangeMessageRequest"));

    return response;
}

第二个有soap端点:

@Endpoint
public class IzvestajEndpoint {

private static final String NAMESPACE_URI = "http://www.example.com/message";

@PayloadRoot(namespace = NAMESPACE_URI, localPart = "exchangeMessageRequest")
@ResponsePayload
public ExchangeMessageResponse exchangeMessage(@RequestPayload ExchangeMessageRequest request) throws Exception {
    ExchangeMessageResponse response = new ExchangeMessageResponse();

    print("endpoint is detected");

    return response;
}

}
在第一个应用程序上触发客户端后,我没有找到[saajsoapmessage exchangemessagerequest]的端点Map。知道为什么那个端点不可用吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题