Hi,
First of all I'm using CF4.51 Pro.
I'm using CFHTTP to hit a page that produces WDDX, then trying to
deserialise the wddx.
I'm aware that there were many problems with CFHTTP in CF4.01 but don't know
what it's like now, but under my own basic testing I've experienced repeated
fails.... So, I'm trying to minimise the errors visible to the user. I've
encapsultated by communication with the remote server in a custom tag and
this is the CFTRY and CFLOCK -ing I'm doing:
<CFTRY>
<CFLOCK type="READONLY" scope="SESSION" timeout="20" throwontimeout="Yes">
<CFHTTP throwonerror="Yes" method="POST" url="#URL#" timeout="5">
<CFHTTPPARAM type="FORMFIELD" name="value1" value="#ATTRIBUTES.value1#">
<CFHTTPPARAM type="FORMFIELD" name="value2" value="#ATTRIBUTES.value2#">
</CFHTTP>
</CFLOCK>
<CFWDDX action="WDDX2CFML" input="#CFHTTP.FileContent#"
output="RequestResult">
<CFCATCH type="Any">
<CFSET request.ErrorMessage = "Communications Error">
<CFMAIL to="#ben#" from="#server_email#" subject="Site error">
#CFHTTP.FileContent#
</cfmail>
<CFEXIT>
</CFCATCH>
</CFTRY>
So, does this all look right???
Will the throwontimeout in cflock and throwonerror in cfhttp be caught by
the cfcatch?
Should I be using a session scoped readonly cflock around all this?
Is CFHTTP a reliable tag to use on a frquently hit site - a few thousand
hits a day??
Is there a better alternative to CFHTTP?
Is there a better alternative method for providing sites with rapidly
changing data than a script that produces WDDX that is accurate at the time
of being hit (big question!!)?
If anyone can answer just a couple of these questions I'd be very happy!!
Thanks
Ben.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.