[Seaside] IVR VXML raw output
Lukas Renggli
renggli at gmail.com
Wed Apr 14 14:14:11 UTC 2010
See the last code snipped on
<http://book.seaside.st/book/fundamentals/forms/fileupload>.
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.
Lukas
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>
> </vxml>
> ...which we can test easily with PHP scripts.
> The IVR system requests a VXML file for the telephone dialog from a defined
> URL.
> The VXML includes a response parameter which passes the answer a URL
> parameters, like:
> http://somehostname:7079/IVR?EmpNum=1234&Phone=person@4165551212
> 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 |
> response
> nextPutAll: self xmlAnswerString ;
> yourself]
> 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,
> Bob
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
--
Lukas Renggli
www.lukas-renggli.ch
More information about the seaside
mailing list