|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Windows 2008 r2 server(64 bit ) and Web services
Success!! if anyone is interested.Matthew Allen 09/03/10 07:04 A Has anyone ran into endless loop problems whilst trying to invoke a web service on windows 2008 server? I was barking up the wrong tree at first, I'd wrongly assumed that it was the recently upgraded cf9.0.1 that was causing the problems but ran the same code on a different server (Windows 2003, 32 bit) with CF9.0.1 installed and the code ran fine. It's a simple web service invocation, no error is generated, just endless loop till it times out. Any ideas? <cfscript> oBjWs = CreateObject("webservice", "http://www.thewebsite/Users.asmx?wsdl"); //this gets user details by ID.. ObjGetUser = oBjWs.GetUserByID("theuserID"); variables.getFirstName = ObjGetUser.getFirstName(); variables.getLastName = ObjGetUser.getLastName(); variables.getID = ObjGetUser.getUniqueID(); variables.getEmail = ObjGetUser.getEmail(); variables.getuserID = ObjGetUser.hashCode(); </cfscript> <cfdump var="#variables.getFirstName#" /> Many thanks, Matt Success!! if anyone is interested. On closer inspection of the application logs I found the error below: Cannot perform web service invocation CheckUserAuthenticates.The fault returned when invoking the web service operation is:<br> <pre>AxisFault faultCode: {http://www.w3.org/2003/05/soap-envelope}Server.userException faultSubcode: faultString: org.apache.commons.httpclient.NoHttpResponseException: The server failed to respond faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:org.apache.commons.httpclient.NoHttpResponseException: The server www.boneacademy.com failed to respond at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1976) at.... I googled and found this article written by Tom Jordhal in 2007 http://tjordahl.blogspot.com/2007/03/apache-axis-and-commons-httpclient.html. By basically switching the pivot values below from: <transport name="http" pivot="java:org.apache.axis.transport.http.CommonsHTTPSender"></transport> To this: <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"></transport> restarted the server, everything now works. Matt
|
February 08, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||