[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: WSDL vs Lua
- From: Laurent FAILLIE <l_faillie@...>
- Date: Mon, 9 Jan 2012 17:19:58 -0800 (PST)
Thanks Tomas,
I'll try and let you know.
But first, I need to make my client code working even without authentication.
I'm trying to invoke a simple "helloworld" service (code can be found on my site : http://destroyedlolo.info/Developpement/WebServices/#hello.php).
So nothing complex : no input and it return a string "Cool, ca marche".
I tried following code :
----
#!/usr/bin/lua
local client = require "soap.client"
local ns, meth, ent = client.call {
url = "",
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 ?
Thanks