[Bulk] Re: [Seaside] IVR VXML raw output
bobn at rogers.com
Wed Apr 14 14:30:56 UTC 2010
Thanks... unfortunately I do have to build the response during the rendering
No problem. I had hoped I'd just missed a simple technique; guess I'll just
dive into the code a bit more.
It's always interesting digging into Seaside.
On Wed, Apr 14, 2010 at 10:14 AM, Lukas Renggli <renggli at gmail.com> wrote:
> 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>
> > </vxml>
> > ...which we can test easily with PHP scripts.
> > The IVR system requests a VXML file for the telephone dialog from a
> > 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
> > 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
> > 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
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside