Thanks... unfortunately I do have to build the response during the rendering step. <div>No problem. I had hoped I'd just missed a simple technique; guess I'll just dive into the code a bit more.</div><div>It's always interesting digging into Seaside. </div>
<div>Bob</div><div><br><div class="gmail_quote">On Wed, Apr 14, 2010 at 10:14 AM, Lukas Renggli <span dir="ltr"><<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
See the last code snipped on<br>
<<a href="http://book.seaside.st/book/fundamentals/forms/fileupload" target="_blank">http://book.seaside.st/book/fundamentals/forms/fileupload</a>>.<br>
<br>
You have to make sure that you call your response code from a callback<br>
and not from HTML rendering code, because otherwise the HTML<br>
generation already started and sent the head to the socket.<br>
<br>
Lukas<br>
<div><div></div><div class="h5"><br>
On 14 April 2010 16:06, Bob N. <<a href="mailto:bobn@rogers.com">bobn@rogers.com</a>> wrote:<br>
> We're looking at providing a simple VXML interface to an IVR system<br>
> (Interactive Voice Response).<br>
> The interface uses VXML data, of the form...<br>
> <?xml version="1.0"?><br>
> <vxml ...><br>
> <form>...some content...</form><br>
> </vxml><br>
> ...which we can test easily with PHP scripts.<br>
> The IVR system requests a VXML file for the telephone dialog from a defined<br>
> URL.<br>
> The VXML includes a response parameter which passes the answer a URL<br>
> parameters, like:<br>
> <a href="http://somehostname:7079/IVR?EmpNum=1234&Phone=person@4165551212" target="_blank">http://somehostname:7079/IVR?EmpNum=1234&Phone=person@4165551212</a><br>
> Consuming the answer is easy enough. We then need to answer a confirmation<br>
> VXML to terminate the call.<br>
> If I use something as simple as...<br>
> renderXmlAnswerOn: html<br>
> self requestContext respond: [:response |<br>
> response<br>
> nextPutAll: self xmlAnswerString ;<br>
> yourself]<br>
> I end up with a response that is very close: it has the VXML content, but it<br>
> also has the '<!DOCTYPE html ... body onload="onLoad()">' header.<br>
> Is there a simple way to answer raw XML from Seaside without the<br>
> '<!DOCTYPE...' header?<br>
> From searching previous posts, no simple solution was obvious. Hopefully<br>
> that's not the case.<br>
> Thanks for any help,<br>
> Bob<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> seaside mailing list<br>
> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Lukas Renggli<br>
<a href="http://www.lukas-renggli.ch" target="_blank">www.lukas-renggli.ch</a><br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</font></blockquote></div><br></div>