I tried following code :
----
#!/usr/bin/lua
local client = require "soap.client"
local ns, meth, ent = client.call {
url = "http://127.0.0.1/~laurent/hello.php",
soapaction = "http://127.0.0.1/helloWorld",
method = "HelloWorld",
entries = {
}
}
print("namespace = ", ns, "element name = ", meth)
for i, elem in ipairs (ent[1]) do
print (elem[1])
end
-----
but I always got the same response :
laurent@chose ~/projets/Lua/WebServices $ lua TstHello.lua
namespace = http://schemas.xmlsoap.org/soap/encoding/ ; element name = helloWorldResponse
nil
I guess the problem is with SoapAction field (only a guess, no proof).
I tried with nil, "", "blabla", "http://127.0.0.1/helloWorld" or the content of WDSL "urn:hello#helloServer#helloWorld" (with or without 'urn:') but I always got NIL :(
Do you know where I'm wrong ?