| CCXML Voxeo 1.0 Development Guide | Home | Frameset Home |
|
" ' this is a test ' "\', e.g. " 'Wayne\'s World! Party time! Excellent!' "+ operator, e.g. " 'code= ' + evt.digits"<if> or an <elseif> where the result is a simple 'true' or 'false'.<script> element is unsupported in the Voxeo CCXML implematation at this time. For this reason, you will only be able to perform ECMA operations within the variables themselves. To illustrate, an example of an 'inline' ECMAScript operation might look like this:
<var name="myNum" expr="1"/>
<assign name="myNum" expr="Number(myNum) + 1"/>
| ANNOTATIONS: EXISTING POSTS |
awirtz
|
|
| Keep in mind that a literal '<' in a javascript expression will disrupt the parsing of the enclosing tag, and should be written as '& l t ;' (or '& g t ;' for '>')
-Aaron Example of bad code: <assign name="myNum" expr="if(x<y) { x; } else { y; }"/> Example of fixed code: <assign name="myNum" expr="if(x & l t ; y) { x; } else { y; }"/> (stupid HTML kept interpreting my character escapes... The '& l t ;' should really have no spaces, but if I write it that way here it gets mangled.) [edited - removed some comments on another error which may be due to something else entirely] |
|
mthle01
|
|
| <?xml version="1.0" >
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml" xml:lang="en-US" > <form> <block> hello world. </block> </form> </vxml> |
|
mikethompson
|
|
| Hey there,
Was this posting by accident? All I see is code for a basic "Hello World" application with no details... Regards, Mike Thompson Voxeo Extreme Support |
|
tomeeo
|
|
| Any guidance on calling a web service from CCXML as in VXML with Voxeo.SoapClient ?? | |
mikethompson
|
|
| Hey Tomeeo,
There is actually some documentation on using soap via a VXML dialog in our VXML guide. You can find the sepcific tutorial located here: http://docs.voxeo.com/voicexml/2.0/appendixo.htm?search=soap#anchor This should give you a good idea of how to interface VXML with SOAP. Regards, Mike Thompson Voxeo Extreme Support |
|
tomeeo
|
|
| Wow! Thanks for the response on a Sunday. Yeah, I saw the VXML SOAP support but for the app I'm building it would be a lot cleaner to have the SOAP calls be made at the call control layer, not the dialog. Right now, i'm having to call "non-dialog" vxml pages that contain the SOAPClient code just to make a WS call. | |
mikethompson
|
|
| Hey Tomeeo,
I will have to check with our CCXML gurus on Monday to see if this is actually possible. My gut tells me that it isn't, but it could be entirely possible :). Stay tuned and I'll get you an answer as soon as I can. Regards, Mike Thompson Voxeo Extreme Support |
|
mikethompson
|
|
| Hey Tomeeo,
I spoke with our CCXML gurus this morning and have some information for you. There is not a specific way to do this at the CCXML level specifically, but you can send off to a server-side script that will do the SOAP request for you and then send the results back to your original session via ccxml.send. However, this seems to be a bit overbearing as you are practically doing the same thing in the VoiceXML dialog. Not to mention, doing this at the CCXML level would be difficult because of its asynchronous nature. If you do wish to proceed in attempting SOAP at the CCXML level, fortunately, the <script> tag is supported in the CCXML 1.0. We hope to be rolling that out later this year. Currently, we do have ccxml 1.0 BETA available in our hosted prophecy partition on evolution, so you might want to play around with that, should you feel its necessary. Hope this helps, Mike Thompson Voxeo Extreme Support |
|
MattHenry
|
|
|
Hiya Tomeeo, The Voxeo SOAP client is not currently configured to be accessible from within the CCXML context, (mind you, this applies to CCXML 1.0 on Prophecy, as well). We probably will extend support for this in the future, but this is pretty far down on our 'to-do' list at present, as we haven't received an overwhelming demand for this feature. As this is the case, any time you access the voxeo SOAP client, it will need to be from within a VoiceXML dialog, at least for the time being. ~Matthew Henry |
| login |
|