Page 1 of 1

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

Posted: Fri Oct 21, 2005 7:14 pm
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

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

Posted: Fri Oct 21, 2005 10:29 pm
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

Posted: Sat Oct 22, 2005 1:34 pm
by robbiesullivan
that worked.

Thanks,
Rob