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

Created by: null on 29-01-2004 08:48:37 PM
I am trying to test a generic decision element using a URI. The Generic Decision has two exit state, Yes and No. I have the application post to a page yesno.asp. The ASP page contains:

</result>
<exit_state>yes</exit_state>
</result>

Is this even close?

All I want to do is return the exit state as yes. I am testing If I have the proper syntax, then I will worry about writing the asp.

Thanks.

Subject: RE: Testing Generic Decision Element
Replied by: Michael Bochynski on 29-01-2004 09:44:29 PM
Hi Matthew,

Actually, there are two minor isses with you code. The opening tag for the Generic Decision Element should be <result> not the </result>. The other issue is the header of the XML file. The first line of the generated XML should contain the XML definition - <?xml version="1.0" encoding="ISO-8859-1"?>

Hence, the final version of your code is:

<?xml version="1.0" encoding="ISO-8859-1"?>
<result>
<exit_state>yes</exit_state>
</result>

The more advanced examples of the XML API can be found in the Developer section of this forum
Hope it solves your issue,
Michael

Subject: RE: Testing Generic Decision Element
Replied by: null on 29-01-2004 09:46:56 PM
Thank you.

The reason I had </result> at the beginning is the "Quick Reference Guide: Audium XML API Example" has all the example this way.

Subject: RE: Testing Generic Decision Element
Replied by: Michael Bochynski on 30-01-2004 10:38:02 PM
Hi,

You are right. This is a typo in the documentation and will be corrected. Thank you for pointing out.

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