We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

trying to post via the <data> tag...

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
robbiesullivan
Posts: 42
Joined: Mon Oct 10, 2005 3:40 pm

trying to post via the <data> tag...

Post by robbiesullivan »

Hello,
I'm trying to post to a webservice via the <data> tag. I've verified I can actually post via HTTP using the webservice.

my syntax is as follows:
<data name="myWS" method="post" srcexpr="http://blablah.net/public/blablah.asmx/RetrieveCrap" namelist="theID"/>

I receive the following error back in my call log:

errmsg syntax error line 1 linetxt http://blablah.net/public/blablah.asmx/RetrieveCrap
tokentxt D

Any ideas?
theID would be name of a local varaible in the vxml. Any assistance would be appriciated.
Thanks,
Rob

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

use src attribute to give IVR platform a string to POST to

Post by support »

Hello,

The attribute should be using is src, not srcexpr. The srcexpr attribute is attempting to evaluate the "variable" named "http://blablah.net/public/blablah.asmx/RetrieveCrap". The IVR error you are seeing is stating that that is not an expected ecmascript variable. This IVR attribute is used when you need to dynamically create the URL you are submitting to within your VoiceXML. If you already know the URL when you are creating the document you should just use the src attribute to give the IVR platform a string to POST to. Hope this helps.

Regards,
Plum Support
Last edited by support on Thu Feb 25, 2010 3:16 pm, edited 2 times in total.

robbiesullivan
Posts: 42
Joined: Mon Oct 10, 2005 3:40 pm

Post by robbiesullivan »

that worked.

Thanks,
Rob

Post Reply