cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
80
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: null on 02-06-2004 09:20:23 PM
I am trying to create a dynamic Form element. I have the box checked "Dynamic Configuration" In the source I choose URI, and I have it pointed to an ASP page on my server. When I run the application, it throughs an error.

In the error log I get "10.5.1.200.1086209657039.105.Payments,06/02/2004 16:54:38, SERVER ERROR: An error occurred while trying to connect to http://10.5.1.200/Payments/PayType.asp to obtain the dynamic voice element configuration for 'dPayType'."

I checked the web server and there is nothing in the log file for this page. Then I checked to see if the address I had in the URI field was correct. I cut and pasted the address from Audium Builder to a web browser. and I was connected to the page. It seems that the element is throwing an error before the page is even being hit.

What could the problem be?

Subject: RE: Dynamic Element
Replied by: Michael Bochynski on 03-06-2004 02:24:31 PM
Hi,

Does your appliication uses the ASP pages served form the same server ielsewhere in the call flow? If so, do you get any errors?

This issue can be caused by an incorrect XML returned to Audium. Could you post the returned XML here?

Regards,
Michael

Subject: RE: Dynamic Element
Replied by: null on 03-06-2004 02:27:23 PM
I have attached the ASP Page with the returned XML. However it seems that the application is throwing an error before it tries to fetch the ASP page.

Subject: RE: Dynamic Element
Replied by: null on 03-06-2004 02:30:02 PM
Sorry

Subject: RE: Dynamic Element
Replied by: Michael Bochynski on 03-06-2004 05:55:57 PM
Hi,

Could you tell me which Java version do you use?

Please note, that Java 1.4.X is the unsupported version and you will encounter issues, such as the one described by you, with XML API using Java 1.4.X.

Audium 3.3 is certified to work with Java 1.3.1_06 and above.

Your XML code needs one additional, required setting for the Form element = "maxnbest". Please include it in your ASP page.

Hope this helps,
Michael

Subject: RE: Dynamic Element
Replied by: null on 03-06-2004 08:17:51 PM
I am using version 1.3.1_10. I added the maxnbest. I replaced the dynamicc form element with a static form element and received the following error:

10.5.1.200.1086278916406.123.Payments,06/03/2004 12:08:58, SERVER ERROR: A VoiceXML exception occurred: error.grammar.asr

Subject: RE: Dynamic Element
Replied by: Michael Bochynski on 03-06-2004 08:25:08 PM
Hi,

This error can be generated by the incorrect gateway adapter used. Please make sure, that you are using the appropriate gateway adapter. In order to check the gateway adapter used in your application's go to the Settings panel for the application and check the "VoiceXML Gateway" setting.

Regards,
Michael

Subject: RE: Dynamic Element
Replied by: null on 04-06-2004 12:43:43 PM
I am running VoiiceGenie 6.1 but there are only adapters for 5.8/5.9 available for download.

Subject: RE: Dynamic Element
Replied by: Michael Bochynski on 04-06-2004 07:26:16 PM
Update:

The customer is using SpeechGenie 6.1 with OSR 2.0. The correct Audium's adapter should be SpeechGenie 5.9 with ORS1.1 instead of the VoiceGenie with Nuance.

Changing the adapter to the proper one solved the 'error.grammar.asr' issue.

Moreover, the incorrect XML returned by the ASP page caused the application to throw an error. The <log> tag adding custom entries to the activity log contained custom XML tags, which were throwing errors on the Audium Server. Removing those custom tags resolved the issue.

Please note, that the returned XML document must conform to the XML API described in the Programmers Guide.

Regards,
Michael

Subject: RE: Dynamic Element
Replied by: null on 07-06-2004 04:47:49 PM
I took out the custom log value and I am still having a problem. The error is:

10.5.1.200.1086626440671.26.Payments,06/07/2004 12:41:03, SERVER ERROR: An error occurred while trying to connect to http://10.5.1.200/Payments/PayType.asp to obtain the dynamic voice element configuration for 'Form_01'.

The application never attempt to connect to the ASP page. The error is occuring before the page can be requested. Is there a Tom-Cat logs I can look at? If so what should I be looking for?

Subject: RE: Dynamic Element
Replied by: Michael Bochynski on 07-06-2004 06:18:33 PM
Hi,

Please make sure, that your ASP page is available via HTTP and generates a valid XML. You might want to type the URL of your ASP page in the web browser (http://10.5.1.200/Payments/PayType.asp) and verify the generated XML.

Please note, that in your code, the variable bACH doesn't have the value assigned. If the bCC is [b:fdf4dd8c65]false[/b:fdf4dd8c65], the [i:fdf4dd8c65]keyword[/i:fdf4dd8c65] setting will not be set at all, since the bACH variable desn't have the value assigned.

Please use the attached xml page pay.xml as the dynamic configuration for your Form element. This is a static xml, similar to the one created by your ASP page. You can use this file to start with, and then modify it, including switching to the dynamic ASP page.

Regards,
Michael

Subject: RE: Dynamic Element
Replied by: null on 07-06-2004 08:12:49 PM
I have changed the ASP page. It only have the some variable declarations in the VBScript portion and then it returns the XML, I added form_confidence_level. When I browse to the page in a web browser I get the XML returned, however I still get the same error when I run the application. Just to be sure I copied the URL of the ASP page from the error log, and then pasted it into a browser on the server, and I still get the same error.

I have atteched the ASP page that I am now using.

Subject: RE: Dynamic Element
Replied by: Michael Bochynski on 08-06-2004 02:09:17 PM
Hi,

Please note, that the xml page should have in the [b:5f4f2c3feb]first[/b:5f4f2c3feb] line of the file information about xml version, and, optionally, about encoding.

Hence, your ASP file should start with the following line:

<?xml version="1.0" encoding="UTF-8" ?>

The ASP code, and any other scripting language for that matter, should be placed after this line.

This is the requirement of one of the Java XML libraries.

Regards,
Michael

Subject: RE: Dynamic Element
Replied by: null on 08-06-2004 02:57:53 PM
I have adjusted my ASP page to include <?xml version="1.0" encoding="UTF-8" ?> as the 1st line. However, I am still getting the same error. I will attach the ASP page. Once again the web logs don't show any attempt to post to the page.

Subject: RE: Dynamic Element
Replied by: Michael Bochynski on 08-06-2004 03:21:19 PM
Hi,

Please download the attached plain XML page and use it as your start point. It has been tested with Audium 3.3 and Tomcat 4.1.24 as a dynamic configuration for a Form element. You can later add additional settings and ASP.

Please note, that the Adium log will have the same entry whether the page has been accessed and returned incorrect XML or the page doesn't exist.

If you want to check the requests being made to your Tomcat, you have to turn on logging in your Tomcat settings. Please refer to the Tomcat's documentation how to turn on access logs.

Regards,
Michael

Subject: RE: Dynamic Element
Replied by: Michael Bochynski on 09-06-2004 03:41:26 PM
Hi,

I have further investigated the issue. The possible reason causing the problems with a dynamic configuration using ASP can be the default settings on the IIS server.

The solution is to set "validateRequest=false" within the ASP application. There is a detailed description at http://www.asp.net/faq/RequestValidation.aspx

Hope this helps,
Michael

Subject: RE: Dynamic Element
Replied by: null on 09-06-2004 05:17:45 PM
The problem did was in the ASP code from the page that preceeded the one we have been examining. I am not quite sure why there was a problem, but once I removed a section of code from the previous page, the problems went away.

Thank you for all your help.

Subject: RE: Dynamic Element
Replied by: Michael Bochynski on 09-06-2004 05:19:56 PM
Hi,

I am glad that the problem is solved.

Regards,
Michael
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links