After doing a little more research, I came to this. I threw
this in a normal
page and dumped it. It came back with all the correct
information in XML.
However, I cannot pass the value back to the page. I tried
returnType as
struct and query, but both threw errors. How can I modify
this to send to a
view for display?
<cffunction name="getZestimate" access="public"
returntype="struct">
<cfargument name="address" type="string"
required="yes">
<cfargument name="city" type="string" required="yes">
<cfargument name="state" type="string" required="yes">
<cfset URLToPull =
"
http://www.zillow.com/webservice/GetSearchResults.htm?zws-id=X1-ZWz1ceb59lb7rf_2avji&address=#argume...
<cfhttp url="#URLToPull#" method="GET" timeout="15">
</cfhttp>
<cfscript>
XMLContent = trim(cfhttp.filecontent);
XMLContent = XMLParse(XMLContent);
</cfscript>
<cfreturn XMLContent>
</cffunction>