markosborne wrote:Graham,
Glad to hear you got it working.
Could you please post your solution for talking to ColdFusion using Revolution? Perhaps with some code or a sample?
Thanks in advance
Mark
In my application that I am working for We Are Closed Today and on our primary website at
http://www.niesc.k12.in.us, I have one coldfusion page located in /properties/webservice/index.cfm that I use <cfswitch>.....</cfswitch> to process a Method URL Variable. An Example of the Runtime Rev code is
Code: Select all
put url ("http://" & gWebServerService & "/properties/webservices/index.cfm?Method=QueryWUndergroundStations&ZipCode=" & passZipCode) into tWUndergroundStationsData
Which gets translated into
http://demo.weareclosedtoday.com/proper ... Code=46545 This page would return the following XML Code
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
- <RunRevXML>
<Credit>We Are Closed Today Website Service</Credit>
<Credit_URL>http://www.weareclosedtoday.com</Credit_URL>
<Description>We Are Closed Today XML Feed of Organizations Current Status to be displayed on website</Description>
<LocationZip>46545</LocationZip>
<LocationCity>Mishawaka</LocationCity>
<LocationState>IN</LocationState>
<LocationCountry>US</LocationCountry>
<LocationTimeZone>EDT</LocationTimeZone>
<ClosestAirportCode>KSBN</ClosestAirportCode>
<ClosestPersonalWSCode>KINMISHA5</ClosestPersonalWSCode>
<CurrentRadarImageURL>46545</CurrentRadarImageURL>
</RunRevXML>
I then use the following code in Runtime Revolution to parse this xml packet and store the information into variables that I can use at other locations in this applet.
Code: Select all
put revCreateXMLTree(tWUndergroundStationsData, false, true, false) into tWUndergroundStationsTreeID
if tWUndergroundStationsTreeID is not a number then
answer error "Error Processing the request or unable to get the information from the Internet. Possible cause would be not connected to the Internet."
exit GetWeatherCodes
end if
put revXMLRootNode(tWUndergroundStationsTreeID) into tWUndergroundStationsXMLRootNode
put revXMLNumberOfChildren(tWUndergroundStationsTreeID, tWUndergroundStationsXMLRootNode, "", 0) into tWUndergroundStationsXMLChildrenNodes
put revXMLNodeContents(tWUndergroundStationsTreeID, "RunRevXML/ClosestAirportCode") into gClosestAirportCode
put revXMLNodeContents(tWUndergroundStationsTreeID, "RunRevXML/ClosestPersonalWSCode") into gClosestPersonalWSCode
put revXMLNodeContents(tWundergroundStationsTreeID, "RunRevXML/NWSRadarID") into gNWSRadarID
put revXMLNodeContents(tWundergroundStationsTreeID, "RunRevXML/WeatherCamera") into gWeatherCam
if revXMLTrees() is not empty then
revDeleteAllXMLTrees
end if
All of the Runtime Revolution applications call the same Coldfusion Page with a different Method variable so I can make an attempt to clean up the website directory structure and have all webservices type of things in one place. If anyone is using Coldfuision as their Application Server and needs specific answers please let me know as my contact information is on the We Are Closed Today Site and I would be more than willing to answer any questions and hope that as I learn more about runtime revolution I would be able to answer questions just like others have done for me.