EasyCFM.COM ColdFusion Forums / ColdFusion Applications / Event gateways for dummies

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: Event gateways for dummies

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

nicky2k
07-18-2007 @ 10:26 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 35
Joined: Jan 2004

Hello,

I am trying to get my head round the concept of event gateways. I have a CFC on my local host in the gateway/cfc folder called weather.cfc. This CFC asks for a user's city, and then calls a weather's webservice to get the weather details for that city.

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

<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>



Website Designed and Developed by Pablo Varando.