Regards, Upayavira
Wermus Fernando wrote:
Yep Upayavira. I�m sorry , I 've made a cut & paste, I 'll give you the correct code. I'm in a hurry with this code, if anyone knows something
<map:match pattern="xmlservice2"> <map:generate type="stream"/> <map:serialize type="xml"/> </map:match>
<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:8080/cocoon-soap/xmlservice2",true); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { alert(xmlhttp.responseText) } } // xmlhttp.setRequestHeader("Man", "POST http://127.0.0.1:8080/cocoon-soap/xmlservice2 HTTP/1.1") // xmlhttp.setRequestHeader("MessageType", "CALL") // xmlhttp.setRequestHeader("Content-Type", "text/xml")
var miSoap="hello"; alert(miSoap); xmlhttp.send(miSoap); } </script> </head> <body> <input type="button" onclick="enviar()" value="enviar"> </body> </html>
-----Mensaje original-----
De: Upayavira [mailto:[EMAIL PROTECTED] Enviado el: lunes, 29 de septiembre de 2003 11:25
Para: [EMAIL PROTECTED]
Asunto: Re: a simple pipeline and a javascript client
Wermus,
You're posting to http://127.0.0.1:8080/cocoon-soap/test
But your matcher matched xmlservice2.
You need to have a matcher to match the URL you post to, e.g. pattern="cocoon-soap/test" or maybe just pattern="test", depending upon your setup.
Regards, Upayavira
Wermus Fernando wrote:
<map:match pattern="xmlservice2">
<map:generate type="stream"/>
<map:serialize type="xml"/>
</map:match>
Hi!
I have this pipeline that it�s like a repeater. I wanna to get the same message that I send, but It returns me a 404 http error, and I don�t know why.
Ps: The message is a soap message, but It�s only like any message, this pipeline only returns the message sent.
Thanks!
I will wait an answer!
<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:8080/cocoon-soap/test",true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
alert(xmlhttp.responseText)
}
}
xmlhttp.setRequestHeader("Man", "POST http://127.0.0.1:8080/cocoon-soap/test 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
