cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wermus Fernando <fernando.wer...@xlnet.net.ar>
Subject web service Help!
Date Fri, 26 Sep 2003 17:57:54 GMT
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message