Webservice call in openVXML [message #511601] |
Tue, 02 February 2010 03:52  |
Eclipse User |
|
|
|
Hi All,
I am developing IVR application in which i have to integrate webservices, can any one tell me how to integrate the java code in script module (plz give a example) , we have java code which calls web service but when integrated with vxml code , openVXML does not parse it.
Someone plz help !
|
|
|
Re: Webservice call in openVXML [message #511812 is a reply to message #511601] |
Tue, 02 February 2010 16:10  |
Eclipse User |
|
|
|
Hi Rachit--
You can actually use any class normally available to you in Java while
in the script block (it's using Mozilla's Rhino engine). The trick is,
you have to explicitly declare the class name. For example, to use the
date object:
var d = new java.util.Date();
Log.info('date: ' + d);
Note that, unlike in Java, the script block does not by default import
java.lang.* classes; you can still use the String object, for example,
you just have to change how it's declared.
Good luck,
Randy
In <hk8p4t$sii$1@build.eclipse.org> rachit gupta wrote:
> Hi All,
>
> I am developing IVR application in which i have to integrate
> webservices, can any one tell me how to integrate the java code in
> script module (plz give a example) , we have java code which calls web
> service but when integrated with vxml code , openVXML does not parse
> it.
>
>
> Someone plz help !
>
|
|
|
Powered by
FUDForum. Page generated in 0.12584 seconds