On Thursday, Jan 30, 2003, at 00:00 US/Pacific, Jason Lees (National
Express) wrote:
> The way we do the invoke is inside a cfloop, as we first query a
> Database to
> get locations to search through, then loop through the record set for
> Each
> Pair of locations/for a set of given days.
I suspected as much. I have hit a problem with cfhttp when called
directly inside a loop and wondered if the same problem might apply to
cfinvoke webservice=...
The symptoms are that cfhttp works for the first couple of hundred
iterations but then starts to fail, unable to provide connection status
information. After about 300 iterations, it never connects successfully.
The workaround for that was to have a simple CFC with one method that
invoked cfhttp and then, in the cfloop, createObject() on that CFC and
call the method. For some reason, creating a new class instance to call
cfhttp solves the problem.
You might try something similar:
<!--- callws.cfc --->
<cfcomponent>
<cffunction name="call" returntype="any">
<cfset var res = 0>
<cfinvoke webservice="..." returnvariable="res"
argumentCollection="#argumentCollection#">
<cfreturn res>
</cffunction>
</cfcomponent>
<!--- loadtest.cfm --->
...
<cfloop ...>
...
<cfinvoke component="callws" method="call"
...arguments specified...>
...
</cfloop>
Sean A Corfield -- Director, Architecture
Web Technology Group -- Macromedia, Inc.
tel: (415) 252-2287 -- cell: (415) 717-8473
aim/iChat: seancorfield -- http://www.macromedia.com
An Architect's View -- http://www.macromedia.com/go/arch_blog
ColdFusion MX and JRun 4 now available for Mac OS X!
http://www.macromedia.com/go/cfmxosx
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4