- Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<form>
<field name="secretCode" type="digits?length=5">
<prompt>
Please press or say your 5-digit code.
</prompt>
</field>
<block>
<data name="verification" namelist="secretCode"
src="http://mycompany.com/dev/CheckCode.xml"/>
<prompt>
Your code is <value expr="verification.documentElement.firstChild.toString()"/>.
</prompt>
</block>
</form>
</vxml>
(For this post, I have substituted the actual domain of my server with mycompany.com.)
The file located at http://mycompany.com/dev/CheckCode.xml is as follows:
- Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<isverified>true</isverified>
This seems like it should be very simple, but when I call and enter my "5-digit code," I am then told that "a serious error of type error-badfetch has occurred." It seems that it is having trouble reading the XML file. When I point my browser to that URL, though, it can read the XML file just fine. What is going wrong?
Thank you,
David Cohen
