+1 to this CFC. Just used it to consume the Oodle.com classifieds API.
~Che 

-----Original Message-----
From: Brad Wood [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 18, 2008 12:21 AM
To: CF-Talk
Subject: Re: XML-RPC with CF8?

I actually just got done doing a project that consumed an XML-RPC web
service.  There is a CFC Roger Benningfield wrote that will translate
xml-rpc xml to ColdFusion vars and back again.
There is a link in the comments of my blog here:
http://www.codersrevolution.com/index.cfm/2008/8/30/XMLRPC-Alive-yes-but-sti
ll-kicking

Basically, you call the webservice with a cfhttp tag, and you simply pass
the XML as the body of the request and parse the XML that comes back.
Here's a snippet of code that goes with the CFC I mentioned above (error
checking removed).

<cfset local.request_xml = CFML2XMLRPC(local.inputs_array,'call')>

<cfhttp url="#arguments.web_service_location#" method="POST" timeout="60" 
result="local.cfhttp">
 <cfhttpparam name="request_body" value="#local.request_xml#" type="xml">
</cfhttp>

<cfset local.response = XMLRPC2CFML(local.cfhttp.filecontent)>

~Brad



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312755
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to