on 01-24-2014 03:19 PM
How does this work if you use vxml 2.1 and the VXML 2.1 <data> tag?
The data tag from VXML 2.1 is typically used to fetch XML data and then parse it. For cisco data you can call any URL and post data to it and get a response back from the server.
Hemal
Hemal,
Does this mean the <data> tag can be used for an HTTP post to a server, and then fetch XML for parsing?
Second, I've found that the <data> or <cisco-data> tag don't support Basic Authentication, example given, where the server requires a username and password:
<var name="URL" />
<assign name="URL" expr="'http://username:password@IP/Service'" />
<data name="MyName" srcexpr="URL" namelist="varA varB" method="post" fetchtimeout="50000ms" />
How does Cisco recommend handling Basic Authentication for <data> HTTP POST requests?
Have you see this?
Thanks,
Will Watts
Bill,
. I have used data tag to fetch a xml doc based on certain criteria. So you can pass in the name for the dom. So for example I could have something like
Hope that makes sense.
Hemal
Hemal,
Please type that again. There is nothing on your comment for your example hemal.mehta.
Thank you,
Will
Sorry Bill. Here you go...
Bill,
. I have used data tag to fetch a xml doc based on certain criteria. So you can pass in the name for the dom. So for example I could have something like
<address>
<streetname>Berry dr</streetname>
<streetnumber>246</streenumber>
<address>
<data name=”address” src=”address.xml”>
<!----Put java script code to retrieve the xml values -à
<script>
</script>
</data>
Hope that makes sense.
Hemal
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: