Copy link to clipboard
Copied
We are using Coldfusion Enterprise v. 8.01 hotfix 4 on Server 2003 32bit with IIS6 and 2008 64bit with IIS 7.5.
We have a programmer trying to call a web service over https on these servers using <cfinvoke> here is the code:
<cfscript>
variables.linkitg = createObject('webservice', 'https://notworking.server.net/webservices/link/mhe/MHESqlData.cfc?wsdl');
</cfscript>
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test</title>
</head>
<body>
<cfoutput>
<h2>Testing Web Service on itg.link</h2>
<cfset resLinkItg = variables.linkitg.getAll()>
Retrieved #resLinkItg.recordCount# records
------------------------------------------------------------------------------------------------------
When you run this test page from the browser we get:
But if you enter the url to the web service(https://notworking.server.net/webservices/link/mhe/MHESqlData.cfc?wsdl) directly into the browser it works. Even if you append the url with the same method called in the invocation (https://notworking.server.net/webservices/link/mhe/MHESqlData.cfc?wsdl&method=getall) it returns data like expected.
But in the code we get the message shown above: Connection refused: connect
There is no firewall between the servers. The security certificate from the "not working server" was imported into the cacert file for the server calling the service and we have verified that it is not expired.
The programmer has moved ahead with his project, changing calling this file with <cfhttp> instead of <cfinvoke> and his data is returned. He does not want to stay with that method.
Any ideas of ways to troubleshoot/fix this ???? My friend google is not very helpful with this error.
Thanks in advance.
Copy link to clipboard
Copied
See my response here:
http://forums.adobe.com/message/3498248#3498248
Copy link to clipboard
Copied
We're certain it is the correct keystore. We have several servers and have to import certs regularly. So, I'm sure that's not the issue as it works usng cfhttp but not cfinvoke. It is only when cfinvoke is used that we get the connection refused message.
Copy link to clipboard
Copied
Ah, if it works with cfhttp and not cfinvoke, then I am unsure. Hopefully someone else will have an answer for you.
Copy link to clipboard
Copied
Thanks...