开发者

Unable to read WSDL from Coldfusion9

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

<cfinvoke we开发者_如何学运维bservice="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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜