Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Voicetools » Webservice call in openVXML
Webservice call in openVXML [message #578939] Tue, 02 February 2010 08:52 Go to next message
rachit gupta is currently offline rachit guptaFriend
Messages: 2
Registered: February 2010
Junior Member
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 #578967 is a reply to message #578939] Wed, 03 February 2010 02:05 Go to previous message
Randy Childers is currently offline Randy ChildersFriend
Messages: 121
Registered: July 2009
Senior Member
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 !
>
Previous Topic:Webservice call in openVXML
Next Topic:Calling Web Service
Goto Forum:
  


Current Time: Thu Nov 27 12:24:48 GMT 2014

Powered by FUDForum. Page generated in 0.01715 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software