Logic Machine Forum
SOAP - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: SOAP (/showthread.php?tid=532)



SOAP - Thomas - 02.01.2017

Hi
Is there a soap library available for Lua scripting?
Or any other way how to call SOAP procedure on a remote server?
Thank you


RE: SOAP - admin - 02.01.2017

You can try adding LuaSOAP as user libraries with some minor modifications.

1. Create user library called lxplom and paste code this code:
https://github.com/LuaDist/luaexpat/blob/master/src/lxp/lom.lua

2. Create user library called soap and paste code this code, replacing require"lxp.lom" with require"user.lxplom"
https://github.com/tomasguisasola/luasoap/blob/master/src/soap.lua

3. Create user library called soapclient and paste code this code, replacing require("soap") with require("user.soap")
https://github.com/tomasguisasola/luasoap/blob/master/src/client.lua

Then in your script you can load client library like this:
Code:
client = require('user.soapclient')



RE: SOAP - Thomas - 02.01.2017

Perfect. It works!
Thank you