cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: a simple pipeline and a javascript client
Date Mon, 29 Sep 2003 18:20:42 GMT
Wermus Fernando wrote:

>If I replace the stream generator with the file generator, the client runs
>ok. The error is "recource not found" when I test with the javascript client
>& the browser.
>	I can´t make up any idea why it´s not running it.
>
>I need to make a soup service with cocoon & a javascript client.
>  
>
Do you get any more information in your javascript client? What resource 
is not found? Is there a stack trace?

Regards, Upayavira

>
>
>-----Mensaje original-----
>De: Upayavira [mailto:uv@upaya.co.uk] 
>Enviado el: lunes, 29 de septiembre de 2003 12:23
>Para: users@cocoon.apache.org
>Asunto: Re: a simple pipeline and a javascript client
>
>Try replacing the stream generator with a file generator, and see if you 
>can get a file back. Then try accessing the URL from a browser. What 
>error do you get.
>
>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:uv@upaya.co.uk] 
>>Enviado el: lunes, 29 de septiembre de 2003 11:25
>>Para: users@cocoon.apache.org
>>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: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>> 
>>
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message