I have a confusion. Maybe some can light me. Using XMLHttpRequest or Msxml2.XMLHTTP it very easy call a CFC web service. The problem is that the caller call wsdl file ! I don't figure how connect javascript with coldfusion.
If you try my code you receive the wsdl file. Of course, your are calling wsdl file!. <script language="javascript"> var req; function GoTest() { req = false; var ws_url = "http://localhost/cf/XmlHttpRequest/Customers.cfc?wsdl"; // your url var ws_method = "GET"; // method here // branch for native XmlHttpRequest object: Mozilla, Netscape, etc if(window.XMLHttpRequest) { try { req = new XMLHttpRequest(); } catch(e) { req = false; } } // branch for IE else if(window.ActiveXObject) { try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { req = false; } } if(req) { req.onreadystatechange = ProcessReqChange; /* Assign method to process request */ req.open(ws_method,ws_url,true); req.send(null); } } function ProcessReqChange() { if (req.readyState == 4) /* complete */ { if(req.status == 200) { // Clear textarea container document.getElementById("ContainerTextArea").value = ""; document.getElementById("ContainerTextArea").value = req.responseText; } else { alert("There are a problem request Xml Data:\n" + req.status + " / " + req.statusText); } } } this code set ContainerTextArea Html element from html page. any help ? regards On 8/14/05, wolf2k5 <[EMAIL PROTECTED]> wrote: > > On 8/10/05, Thomas Chiverton <[EMAIL PROTECTED]> wrote: > > Learn how to write SOAP XML requests, i.e. don't do that. > > Isn't there any Javascript library to handle SOAP calls? > > Why you recommend to don't do that? Performance reasons? > > Thanks. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214952 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54