We're looking at providing a simple VXML interface to an IVR system (Interactive Voice Response). <div><br></div><div>The interface uses VXML data, of the form... </div><div><div><?xml version="1.0"?></div>
<div><vxml ...></div><div><form>...some content...</form></div>
<div></vxml></div><div>...which we can test easily with PHP scripts. </div><div><br></div><div>The IVR system requests a VXML file for the telephone dialog from a defined URL. </div><div>The VXML includes a response parameter which passes the answer a URL parameters, like: </div>
<div> <a href="http://hostname:7079/IVR?EmpNum=1234&Phone=person@4167987948" target="_blank">http://somehostname:7079/IVR?EmpNum=1234&Phone=person@4165551212</a> </div><div><br></div><div>Consuming the answer is easy enough. We then need to answer a confirmation VXML to terminate the call.</div>
<div><br></div><div>If I use something as simple as... </div><div><br></div><div><div>renderXmlAnswerOn: html</div><div><span style="white-space:pre">        </span>self requestContext respond: [:response |</div>
<div><span style="white-space:pre">                </span>response</div><div><span style="white-space:pre">                        </span>nextPutAll: self xmlAnswerString ; </div><div><span style="white-space:pre">                        </span>yourself]</div>
<div><br></div><div>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.</div><div><br></div><div>Is there a simple way to answer raw XML from Seaside without the '<!DOCTYPE...' header? </div>
<div><br></div><div>From searching previous posts, no simple solution was obvious. Hopefully that's not the case. </div><div>Thanks for any help, </div><div>Bob </div><div><br></div><div><br></div>
</div></div>