[Bulk] Re: [Seaside] IVR VXML raw output

Bob N. bobn at rogers.com
Wed Apr 14 14:30:56 UTC 2010


Thanks... unfortunately I do have to build the response during the rendering
step.
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.
Bob

On Wed, Apr 14, 2010 at 10:14 AM, Lukas Renggli <renggli at gmail.com> wrote:

> 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
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100414/bd5fe871/attachment.htm


More information about the seaside mailing list