lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


	Hi Laurent

	Sorry for the delay.

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 ?
	No, sorry.  It seems correct, but I am not sure if I understand
some details in your PHP code...  Anyway, I suggest you inspect more
thoroughly the result (ent) to see if it has any clue.	After that you
could try to insert some log messages before calling soap.decode()...

	Regards,
		Tomás