Thanks... unfortunately I do have to build the response during the rendering step.  <div>No problem.  I had hoped I&#39;d just missed a simple technique; guess I&#39;ll just dive into the code a bit more.</div><div>It&#39;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">&lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt;</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>
&lt;<a href="http://book.seaside.st/book/fundamentals/forms/fileupload" target="_blank">http://book.seaside.st/book/fundamentals/forms/fileupload</a>&gt;.<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. &lt;<a href="mailto:bobn@rogers.com">bobn@rogers.com</a>&gt; wrote:<br>
&gt; We&#39;re looking at providing a simple VXML interface to an IVR system<br>
&gt; (Interactive Voice Response).<br>
&gt; The interface uses VXML data, of the form...<br>
&gt; &lt;?xml version=&quot;1.0&quot;?&gt;<br>
&gt; &lt;vxml ...&gt;<br>
&gt; &lt;form&gt;...some content...&lt;/form&gt;<br>
&gt; &lt;/vxml&gt;<br>
&gt; ...which we can test easily with PHP scripts.<br>
&gt; The IVR system requests a VXML file for the telephone dialog from a defined<br>
&gt; URL.<br>
&gt; The VXML includes a response parameter which passes the answer a URL<br>
&gt; parameters, like:<br>
&gt;    <a href="http://somehostname:7079/IVR?EmpNum=1234&amp;Phone=person@4165551212" target="_blank">http://somehostname:7079/IVR?EmpNum=1234&amp;Phone=person@4165551212</a><br>
&gt; Consuming the answer is easy enough.  We then need to answer a confirmation<br>
&gt; VXML to terminate the call.<br>
&gt; If I use something as simple as...<br>
&gt; renderXmlAnswerOn: html<br>
&gt; self requestContext respond: [:response |<br>
&gt; response<br>
&gt; nextPutAll: self xmlAnswerString ;<br>
&gt; yourself]<br>
&gt; I end up with a response that is very close: it has the VXML content, but it<br>
&gt; also has the &#39;&lt;!DOCTYPE html ... body onload=&quot;onLoad()&quot;&gt;&#39; header.<br>
&gt; Is there a simple way to answer raw XML from Seaside without the<br>
&gt; &#39;&lt;!DOCTYPE...&#39; header?<br>
&gt; From searching previous posts, no simple solution was obvious.  Hopefully<br>
&gt; that&#39;s not the case.<br>
&gt; Thanks for any help,<br>
&gt; Bob<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;<br>
&gt;<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>