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

Created by: null on 04-02-2004 03:50:20 PM
I have created a Generic Action element that references an ASP page. The ASP page return just the xml that defines a new seesion variable that I hardcoded.

<?xml version='1.0' encoding='UTF-8' ?>
<result>
<status>success</status>
<new_data>
<set_session name="AccountBalance">1234.56</set_session>
</new_data>
<log>
<custom name="ASP">You made it to the ASP Page.</custom>
</log>
</result>

It appears that I have no problem connecting to the page, The custom log value gets logged. But when I try to play back the session variable "AccountBalance" I can an error. I have attached a file that contains the results of the activity log. The error message is vague.

Subject: RE: Testing Generic Action Element Response
Replied by: Michael Bochynski on 04-02-2004 05:03:27 PM
Hi,

In the code presented, the Audium Server correctly connects to the ASP page, however the session value AccountBalance is not stored. The reason is that the session data should be set using <session> tag, not the <set_session> tag. Changing this tag would solve your problem.

At this point I would like to apologize for a typo error in our Audium 3 XML API documentation, which has the XML API sample code. Tags for setting the element and session data should have the following structure:

<element name=NameOfYourElement log=â¿¿true|falseâ¿¿ type=â¿¿string|int|float|boolean>Data </element>
<session name=NameOfYourVariable>Data </session>

Regards,
Michael

Subject: RE: Testing Generic Action Element Response
Replied by: null on 04-02-2004 05:14:50 PM
That worked. Thanks!
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