• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

XML / Webservice help

LEGEND ,
Sep 20, 2007 Sep 20, 2007

Copy link to clipboard

Copied

I am attempting to use Zillow to get property values for entered properties.
I have not a clue how to use this yet and looking for direction /
assistance.

I submit the information to Zllow's site via URL and it produces XML. When
you directly link to it, it comes up and a XML document.

http://www.zillow.com/webservice/GetSearchResults.htm?zws-id=%3CZWSID%E&address=2114+Bigelow+Ave&cit...

How can I pass the information via form submission to this URL and get back
something I can actually use on a page on my client's site. This is my first
time with something like this, so any guidance would be appreciated. I need
this project finished this week and this is one of the last things.

Thanks!


TOPICS
Advanced techniques

Views

277

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 20, 2007 Sep 20, 2007

Copy link to clipboard

Copied

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>


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 20, 2007 Sep 20, 2007

Copy link to clipboard

Copied

LATEST
Apparently I am retarded. I just noticed that there is an XML returnType.


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation