lua-users home
lua-l archive

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


i'm try with

local client = require "soap.client"
local ns, meth, ent = client.call {
        url = "http://localhost:8080/Directorio/ServicioDirectorio";,
        soapaction = "",
        method = "listarAlcaldia",

entries = {
        ["attr"] = {
        },
        [1] = "2010-01-01",
        ["tag"] = "fecha",
}
}

print("namespace = ", ns, "element name = ", meth)
for i, elem in ipairs (ent[1]) do
        print (elem[1])
end


and returns me:


<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/";><S:Body><S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope";><faultcode>S:Client</faultcode><faultstring>Cannot find dispatch method for {}listarAlcaldia</faultstring></S:Fault></S:Body></S:Envelope>
stack traceback:
    [C]: in function 'assert'
    /usr/share/lua/5.1/soap/client.lua:93: in function 'call'
    lua_client.lua:2: in main chunk
    [C]: ?




El 10/10/12 08:58, steve donovan escribió:
On Wed, Oct 10, 2012 at 3:22 PM, José Francisco Luis Medina
<luisjf1983@gmail.com> wrote:
but I have a problem because in table 'entries', the documentation says that
is a table in LuaExpat's format. but I know that format and can not find
documentation.
It's very simple, here's all there is to it:

http://matthewwild.co.uk/projects/luaexpat/lom.html

steve d.