House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Windows 2008 r2 server(64 bit ) and Web services

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matthew Allen
09/03/2010 03:54 AM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matthew Allen
09/03/2010 07:04 AM

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


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

February 08, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29