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

Created by: null on 21-05-2003 09:14:39 PM
I am trying to set some session variables using URI.

Could I get a sample of code that creates and sets the value for one session variable?

If this is all I want to happen, would I put the URI in a Form element?

Thanks,

Tracey

Subject: RE: Session Variables
Replied by: null on 22-05-2003 03:59:29 PM
Hi Tracey,

In the training binder you received, there are several examples of using the XML-over-HTTP API. These examples show how you would create Session Data. Basically, within the XML response you would have content that would look like this:

[code:1:ea130f30ea]
<data>
<session>
<variable name="MySessionDataName">MySessionDataValue</variable>
</session>
</data>
[/code:1:ea130f30ea]

This is just a fragment of the XML, not the full XML response.

Just in case, I've included a PDF of those pages in the training binder in this post.

I cannot provide any code because you can use this API using any language that has capabilities to be accessed over HTTP (such as ASP). So you would write code within ASP to return the XML displayed above and in the attached file.

Also remember, the XML-over-HTTP API is used to do the following:

  • Make a generic action or decision element.
  • Perform some action at the start and end of a call.
  • Dynamically configure an element.

You would not use this URI in a Form element unless you want to dynamically configure it. The URIs referenced in a Form element's configuration are for specifying the grammars you intend on using to capture the speech from the caller.

I hope this helps!
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