Skip to main content



      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 03:52 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 18:54:53 EDT 2025

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

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

Back to the top