Hi all,
I'm trying to write a lua script to query a wsdl using luasoap 3.0, but I'm being unable to have it working.
Do you have any advice or any clues of what should I look into?
Thanks in advance.
The error I'm getting:
lua: /usr/local/share/lua/5.1/soap/client.lua:96: Error while decoding: /usr/local/share/lua/5.1/soap.lua:249: Couldn't find SOAP Body!
stack traceback:
[C]: in function 'assert'
/usr/local/share/lua/5.1/soap/client.lua:96: in function 'call'
soap-1-validatePin.lua:18: in main chunk
[C]: ?
And this is my code:
local client = require "soap.client"
local request = {
url = "" href="http://EDITED.com:8080/EDITED.wsdl">http://EDITED.com:8080/EDITED.wsdl",
soapaction = "doubler",
method = "validatePinRequest",
entries = {
{ tag = "pin", 1234567899 },
},
}
local ns, meth, ent = client.call (request)
for i, elem in ipairs (ent[1]) do
print (elem[1])
end
--
Regards,
David.