View Single Post
  #2 (permalink)  
Old Jul 18th, 2007, 09:47
tallgal2007 tallgal2007 is offline
New Member
Join Date: Jun 2007
Location: London
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Event gateways for dummies

To help you understand what I am trying to acheive better, my call to the event gateway is as follows:

Code: Select all
<h1>Weather in your city</h1>
<p>This is a test of the weather gateway.</p>
<cfscript>
   status = false;
   props = structNew();
   props.cfcpath="C:\CFusionMX7\gateway\cfc\ecamples\mesnu\weather.cfc";
   props.method="enter";
   props.OriginatorID=CGI.SCRIPT_NAME;
   props.Message="TW13 5JN";
   props.file="gateway_test";
   props.type="warning";
   status = SendGatewayMessage("Weather", props);
   if (status IS True) 
      WriteOutput('Event Message "#props.Message#" has been sent.');
</cfscript>
Really, what I want to get is the value returned by the CFC.

Last edited by karinne; Jul 18th, 2007 at 14:12. Reason: Please use [code]...[/code] tags when displaying code!
Reply With Quote