I´ve followed this example to make an xml web service. It functions fine, but when I want to make my own client with xmlHTTP and javascript on windows xp, I cant connect to the service
http://www.xml.com/pub/a/ws/2003/03/18/cocoon.html This is my client. <html> <head> <script languaje="javascript"> function enviar(){ var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.4.0"); search="Word" xmlhttp.open("POST", "http://127.0.0.1/cocoon-soap/xmlservice2",true); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { alert(xmlhttp.responseText) } } //xmlhttp.setRequestHeader("Man", "POST http://127.0.0.1/cocoon-soap/xmlservice2 HTTP/1.1") //xmlhttp.setRequestHeader("MessageType", "CALL") xmlhttp.setRequestHeader("Content-Type", "text/xml") var miSoap='<?xml version="1.0" encoding="UTF-8"?> \n' + '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema"> \n'+ '<SOAP-ENV:Body> \n' + '<ns1:getQuote xmlns:ns1="urn:xmethods-delayed-quotes"> \n' + '<symbol xsi:type="xsd:string">IBM</symbol> \n' + '</ns1:getQuote> \n' + '</SOAP-ENV:Body> \n' + '</SOAP-ENV:Envelope>'; alert(miSoap); xmlhttp.send(miSoap); } </script> </head> <body> <input type="button" onclick="enviar()" value="enviar"> </body> </html> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]