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

----- Original Message ----- 
From: "Dave Watts" <[EMAIL PROTECTED]>
To: "CF-Talk" <cf-talk@houseoffusion.com>
Sent: Wednesday, September 17, 2008 6:12 PM
Subject: RE: XML-RPC with CF8?


>> I've found some web references to consuming XMP-RPC using
>> CF8's built-in funcitonality, but no examples.  I took it to
>> mean that it may be possible to use <cfinvoke> to consume
>> XML-RPC data, but I'm not really sure if I'm on the right track.
>>
>> <cfinvoke webservice="http://xml.aaaaaaaaa.com"; ...
>
> CFINVOKE lets you call SOAP services. I don't think it supports XML-RPC. 
> For
> that, you're basically on your own. You'll have to use CFHTTP and CF's XML
> parser. Someone may have written code for this already, though.
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:312737
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