[Seaside] IVR VXML raw output
renggli at gmail.com
Wed Apr 14 14:14:11 UTC 2010
See the last code snipped on
You have to make sure that you call your response code from a callback
and not from HTML rendering code, because otherwise the HTML
generation already started and sent the head to the socket.
On 14 April 2010 16:06, Bob N. <bobn at rogers.com> wrote:
> We're looking at providing a simple VXML interface to an IVR system
> (Interactive Voice Response).
> The interface uses VXML data, of the form...
> <?xml version="1.0"?>
> <vxml ...>
> <form>...some content...</form>
> ...which we can test easily with PHP scripts.
> The IVR system requests a VXML file for the telephone dialog from a defined
> The VXML includes a response parameter which passes the answer a URL
> parameters, like:
> Consuming the answer is easy enough. We then need to answer a confirmation
> VXML to terminate the call.
> If I use something as simple as...
> renderXmlAnswerOn: html
> self requestContext respond: [:response |
> nextPutAll: self xmlAnswerString ;
> I end up with a response that is very close: it has the VXML content, but it
> also has the '<!DOCTYPE html ... body onload="onLoad()">' header.
> Is there a simple way to answer raw XML from Seaside without the
> '<!DOCTYPE...' header?
> From searching previous posts, no simple solution was obvious. Hopefully
> that's not the case.
> Thanks for any help,
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside