gpt4 book ai didi

java - Axis2 系统无法推断传输信息错误

转载 作者:搜寻专家 更新时间:2023-11-01 03:10:09 24 4
gpt4 key购买 nike

我正在尝试使用客户端代码发送 SOAP 请求,该客户端代码使用 wsdl2java 工具为 eclipse 生成的库,但不断收到此错误:

[ERROR] The system cannot infer the transport information from the Address: http://172.17.4.2:8081/axis2/services/CDMS URL.

This client is sort of a proxy that sits between a "real" client and a server. I obtained the URL from wsa:To field of the SOAP message from the real client, and use it to create a connection to the server.

I'm pretty lost as to looking for possible source of mistake, could anyone give a hint? I'm not sure which information I can give here that may be of use, so just let me know as for which other error messages or config file extracts that I should provide to help you helping me :)

Thanks...

UPDATE:

I made some more trials, the request was successfully sent if I hardcode the URL string to the client stub, instead of obtaining it from another message:

ConfigurationContext cc = ConfigurationContextFactory.createConfigurationContextFromFileSystem("/home/me/axis2-1.6.2/repository", "/home/me/axis2-1.6.2/conf/axis2.xml");
CDMSStub stub = new CDMSStub(cc, "http://172.17.4.2:8081/axis2/services/CDMS");

我不明白为什么,因为我提供的字符串与硬编码的字符串具有完全相同的值/内容....

最佳答案

错误本身表明它无法解析用于发送消息的端点。您需要确保后端服务已启动并正在运行。还要确保您的代理服务正确配置为将消息发送到后端服务。希望这会有所帮助。

关于java - Axis2 系统无法推断传输信息错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12621615/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com