John, I'm curious about this. To clarify, you're saying you got this code from David Fekke's blog, right? Have you yet tried running it from your own machine?
I would suspect it would not work. Browser security limitations enforce that you can only request data via Spry (or any Ajax solution) from a file on the same server from which the spry page was served. That said, if one was serving a Spry page from a CF page that was then calling back to a CFC on the same site, you wouldn't need to bother to call it as a web service. You can just call it directly. And if you're hope was for making calls against other web services, the solution would instead be to call back to a CFC on your own site, and let THAT do the web service invocation and return the results to your Spry client. Ray Camden showed something akin to this in two log entries: http://ray.camdenfamily.com/index.cfm/2006/7/28/Building-an-AJAX-Based-RSS-P od http://ray.camdenfamily.com/index.cfm/2006/8/4/My-XMLProxycfm No, he's not invoking a web service in his proxy, but he just as well could. If there's something about your attempt that I've misunderstood, please do let me know. /charlie http://www.carehart.org/blog/ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, August 24, 2006 11:55 AM To: discussion@acfug.org Subject: [ACFUG Discuss] Feeling a little SPRY <code_snippet source="fekke.com/blog"> <script> var dsData = new Spry.Data.XMLDataSet("http://www.fekke.com/com/SpockWS.cfc", "/soapenv:Envelope/soapenv:Body/ns1:getQuoteResponse/getQuoteReturn", { method: "POST", postData: '<?xml version="1.0" encoding="UTF-8" standalone="no"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://com" xmlns:intf="http://com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://rpc.xml.coldfusion" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > <SOAP-ENV:Body><mns:getQuote xmlns:mns="http://com" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"></mns:get Quote></SOAP-ENV:Body></SOAP-ENV:Envelope>', headers: { "Content-Type": "text/xml; charset=utf-8", "SOAPAction": "http://localhost:8300/com/SpockWS/getQuote" } , useCache: false }); dsData.startLoadInterval(10000); </script> </code_snippet> There has to be an easier and prettier way of calling a webservice from spry, any ideas? ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -------------------------------------------------------------