Hi, I want to access a webservice that exposes a SOAP interface. I was wondering if this is better to do in Lua or in Java. Any suggestions will be greatly appreciated. Also in general is it better to use mod-java instead of mod-lua for doing advanced IVR functions like database access or web service access? Are there any drawbacks to using java instead of Lua? Thanks, JP
On 21.02.2013 02:02, JP wrote:
Hi, I want to access a webservice that exposes a SOAP interface. I was wondering if this is better to do in Lua or in Java. Any suggestions will be greatly appreciated. Also in general is it better to use mod-java instead of mod-lua for doing advanced IVR functions like database access or web service access? Are there any drawbacks to using java instead of Lua?
Thanks, JP
I had a conversation with a member on this list about what to use for scripting: lua, perl. java. Ended up that lua is the fastest in its own. For doing simple things, even IVR's, lua is enough. And lua is installed with FS. I use lua to connect to DB and don't see any performance drop. -- Mimiko desu.
lua is by far the best approach. I really don't know about accessing web services, but for db it is perfect. I wrote a whole wholesale and calling card app with lua, so you can pretty much do anything wit it. Also, lua has a SOAP interface: http://tomasguisasola.github.com/luasoap/ Good luck! David On Thu, Feb 21, 2013 at 7:24 AM, Mimiko <vbvbrj@gmail.com> wrote:
On 21.02.2013 02:02, JP wrote:
Hi, I want to access a webservice that exposes a SOAP interface. I was wondering if this is better to do in Lua or in Java. Any suggestions will be greatly appreciated. Also in general is it better to use mod-java instead of mod-lua for doing advanced IVR functions like database access or web service access? Are there any drawbacks to using java instead of Lua?
Thanks, JP
I had a conversation with a member on this list about what to use for scripting: lua, perl. java. Ended up that lua is the fastest in its own. For doing simple things, even IVR's, lua is enough. And lua is installed with FS.
I use lua to connect to DB and don't see any performance drop.
-- Mimiko desu.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Thu, Feb 21, 2013 at 1:17 PM, David Villasmil <david.villasmil.work@gmail.com> wrote:
lua is by far the best approach. I really don't know about accessing web services, but for db it is perfect. I wrote a whole wholesale and calling card app with lua, so you can pretty much do anything wit it.
Number of reusable libraries is quite limited compared to other languages. Lua is well documented on FS wiki, other languages are just undocumented. -- Benjamin Henrion <bhenrion at ffii.org> FFII Brussels - +32-484-566109 - +32-2-3500762 "In July 2005, after several failed attempts to legalise software patents in Europe, the patent establishment changed its strategy. Instead of explicitly seeking to sanction the patentability of software, they are now seeking to create a central European patent court, which would establish and enforce patentability rules in their favor, without any possibility of correction by competing courts or democratically elected legislators."
Well that depends on what you intent to accomplish, I guess. The nicest thing about lua (in our case) is that it is embeded inside FS. David On Thu, Feb 21, 2013 at 1:35 PM, Benjamin Henrion <bh@udev.org> wrote:
On Thu, Feb 21, 2013 at 1:17 PM, David Villasmil <david.villasmil.work@gmail.com> wrote:
lua is by far the best approach. I really don't know about accessing web services, but for db it is perfect. I wrote a whole wholesale and calling card app with lua, so you can pretty much do anything wit it.
Number of reusable libraries is quite limited compared to other languages.
Lua is well documented on FS wiki, other languages are just undocumented.
-- Benjamin Henrion <bhenrion at ffii.org> FFII Brussels - +32-484-566109 - +32-2-3500762 "In July 2005, after several failed attempts to legalise software patents in Europe, the patent establishment changed its strategy. Instead of explicitly seeking to sanction the patentability of software, they are now seeking to create a central European patent court, which would establish and enforce patentability rules in their favor, without any possibility of correction by competing courts or democratically elected legislators."
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks to all for the feedback. I guess what I learnt from this conversation is that... Use Lua for as far as possible, but for those exceptional scenarios when Lua falls short, it may make more sense to use a full fledged programming language like Java. -JP On Thu, Feb 21, 2013 at 10:00 AM, David Villasmil < david.villasmil.work@gmail.com> wrote:
Well that depends on what you intent to accomplish, I guess. The nicest thing about lua (in our case) is that it is embeded inside FS.
David
On Thu, Feb 21, 2013 at 1:35 PM, Benjamin Henrion <bh@udev.org> wrote:
On Thu, Feb 21, 2013 at 1:17 PM, David Villasmil <david.villasmil.work@gmail.com> wrote:
lua is by far the best approach. I really don't know about accessing web services, but for db it is perfect. I wrote a whole wholesale and calling card app with lua, so you can pretty much do anything wit it.
Number of reusable libraries is quite limited compared to other languages.
Lua is well documented on FS wiki, other languages are just undocumented.
-- Benjamin Henrion <bhenrion at ffii.org> FFII Brussels - +32-484-566109 - +32-2-3500762 "In July 2005, after several failed attempts to legalise software patents in Europe, the patent establishment changed its strategy. Instead of explicitly seeking to sanction the patentability of software, they are now seeking to create a central European patent court, which would establish and enforce patentability rules in their favor, without any possibility of correction by competing courts or democratically elected legislators."
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Benjamin Henrion
-
David Villasmil
-
JP
-
Mimiko