无法从 Coldfusion9 读取 WSDL

发布于 2024-10-09 01:15:22 字数 703 浏览 0 评论 0原文

我现在有问题了我在 CF8 中运行了以下代码,一切正常。

<cfinvoke webservice="http://www.w3schools.com/webservices/tempconvert.asmx?WSDL" method="CelsiusToFahrenheit" returnvariable="strg">
    <cfinvokeargument name="Celsius" value="24" />
</cfinvoke>

<cfdump var="#strg#"> 

但在CF9中测试一下。然后遇到以下错误

Unable to read WSDL from URL: http://www.w3schools.com /webservices/tempconvert.asmx?WSDL。错误:java.net.UnknownHostException:www.w3schools.com。 错误发生在第 2 行。

我需要知道的是我需要在 Coldfusion admin 或其他地方进行配置吗?我已经尝试在 CFadmin 中添加上面的 webservices URL > Web 服务但不能。

I've the problem now. I've run the following code in CF8 is ok and everything's fine.

<cfinvoke webservice="http://www.w3schools.com/webservices/tempconvert.asmx?WSDL" method="CelsiusToFahrenheit" returnvariable="strg">
    <cfinvokeargument name="Celsius" value="24" />
</cfinvoke>

<cfdump var="#strg#"> 

But test it in CF9. Then encounter the following error

Unable to read WSDL from URL: http://www.w3schools.com/webservices/tempconvert.asmx?WSDL. Error: java.net.UnknownHostException: www.w3schools.com.
The error occurred on line 2.

What I need to know is Is there I need to configure in Coldfusion admin or somewhere else? I've already tried to add above webservices URL in CFadmin > webservices but cannot.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦行七里 2024-10-16 01:15:22

即使没有在 CF 管理中注册 Web 服务,您的代码也可以在 CF9 中正常运行。尝试重新启动 ColdFusion 或重新启动服务器。您的问题似乎与 DNS 相关,而不是 CF 问题。可能底层 JVM 缓存了过时的 DNS 数据,或者您的服务器在触发 DNS 查询时出现问题。如果重新启动不起作用,请检查防火墙设置。

Your code works fine in CF9 even without registering the webservice in CF admin. Try to restart ColdFusion or reboot the server. Your problem seems to be more DNS related than to be a CF issue. Probably the underlying JVM cached outdated DNS data or your server has problems firing DNS queries. Check firewall settings if restart doesn't help.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文