Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Voicetools » Webservice call in openVXML(How to call a web service in openVXML using java)
Webservice call in openVXML [message #511601] 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 #511812 is a reply to message #511601] Tue, 02 February 2010 21:10 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:Re: Programming by voice
Next Topic:Calling Web Service
Goto Forum:
  


Current Time: Thu Apr 25 07:09:34 GMT 2024

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

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

Back to the top