RE: XML-RPC with CF8?
+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). ~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
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-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). ~Brad - Original Message - From: "Dave Watts" <[EMAIL PROTECTED]> To: "CF-Talk" 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 to consume >> XML-RPC data, but I'm not really sure if I'm on the right track. >> >> http://xml.a.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
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 to consume > XML-RPC data, but I'm not really sure if I'm on the right track. > > http://xml.a.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. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| 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:312728 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
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 to consume XML-RPC data, but I'm not really sure if I'm on the right track. http://xml.a.com"; method="getReport" returnvariable="rpt"> When I try this I get the following errors: Cannot generate stub objects for web service invocation. Name: http://xml.y.com. WSDL: http://xml.aa.com. WSDLException (at /methodResponse): faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'.: It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct. If the requested WSDL document cannot be retrieved or is dynamically generated, it is likely that the target web service has programming errors. So I take it that it's trying to retrieve a WSDL document and one doesn't exist? Am I on the right track to using CF8's facilities for doing this? I can successfully make the same XML-RPC call using . ~| 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:312727 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4