Page 1 of 1

Namelist not posting to asp

Posted: Tue Mar 22, 2005 6:02 pm
by nehioro
Below is my VXML and asp code. I'm testing posting to an asp page using a fully qualified domain name( I removed my test URL ).
My asp page is not getting any values passed in my field. Please help anyone.


<?xml version="1.0"?>
<vxml version="2.0">
<property name="txtent" value="test"/>
<menu id="Payment">
<prompt>Hi my name is John, and I will be assisting you with your payment. <break time="1s"/>
If you know your payment number, press or say 1.<break time="1s"/> Otherwise, press or say 2.
</prompt>
<choice dtmf="1" next="#get_PaymentID">
one</choice>
<choice dtmf="2" next="#NOID">
two</choice>
</menu>
<form id="get_PaymentID">
<field name="PaymentID" type="digits">
<prompt>
Please enter your payment number.

</prompt>
<filled>
<prompt>You entered <say-as type="acronym"><value expr="PaymentID"/> </say-as>. </prompt>
<submit next="asptest.asp" method="post" enctype="multipart/form-data" namelist="PaymentID txtent" />
</filled>
</field>
</form>
</vxml>


Here is my asp page


<?xml version="1.0"?>
<vxml version="2.0">

<%@ Language=VBScript %>
<%
Dim intVAPOfficeNo
intPaymentID =Request("PaymentID") & " "
Response.ContentType = "text/xml"
%>

<form id="counselor">
<block> <prompt>
The confirment number is <%= intPaymentID %> </prompt>
<exit/>
</block>
</form>
</vxml>

Seems I have same problem

Posted: Thu Mar 24, 2005 2:27 pm
by Alexey
Check if you receive HTTP GET request

Good luck

Posted: Fri Mar 25, 2005 1:30 am
by nehioro
Get requst works.
Thanks.

Any reason why post does not work?

Issue with ASP code as opposed to IVR code

Posted: Fri Apr 01, 2005 10:34 am
by support
While I can't help you with your asp code since my expertise is IVR code specific, I did notice that in your submit namelist you specify "txtent" which is a property value, not an ecmascript value. That may be causing you some trouble. If you wish to pass txtent=test into your asp script, you should use <var name="txtent" expr="'test'"/> instead of the <property> tag.