Hi Walter

Considering your sample server-side object descriptor:

local matricula2URL_descr = {
  name = "matricula2URL",
  method = matricula2URL,
  message = { name = "matricula2URL",
              { name = "matricula", occurrence = 1, type = "string", },
  },
  response = { name = "matricula2URLResponse",
              { name = "URL", occurrence = 1, type = "string", },
  },
}

What server side function does this actually invoke? Something like:

function (occurrence)
  return 'somestring'
end
        No, the function might be something like this:

function matricula2URL(namespace, args)
        ...
        assert(args[1].tag == "matricula", "invalid tag")
        local matricula = args[1][1]
        assert(type(matricula) == "string", "invalid argument `matricula' (expected 'string', 
got '"..type(matricula).."')")
        ...
        return {
                {
                        tag = "URL",
                        'somestring',
                },
        }
end

Can this object description syntax be understood in terms of inputs and
outputs?
        Sorry, I didn't understand what you mean.

Also: when I try to call:

soap.server.export(matricula2URL_descr)

I get the error:

/usr/local/share/lua/5.1//soap/server.lua:148: attempt to concatenate field
'soap_action' (a nil value)
stack traceback:
 /usr/local/share/lua/5.1//soap/server.lua:148: in function
'wsdl_gen_binding'
 /usr/local/share/lua/5.1//soap/server.lua:273: in function 'export'
 soap_service.lua:26: in main chunk


'export' calls  'wsdl_gen_binding' , which tries to reference
__service.soap_action, which hasn't been set to anything. And it won't be,
unless
register_service_info is called beforehand--there is no other way for it to
be set. In other words, it looks as though a prerequisite to doing
the 'export' is setting up the WSDL registration before hand; so WSDL
support isn't just an enhancement to be used if desired, it is a necessary
precursor to 'export' anything (or it looks that way).
        I think it is a bug, sorry.  As I said, most of this code to
generate WSDL is a hack and is not well tested.  Anyway, I can try to
help you let it work...

        Regards,
                Tomás
_______________________________________________
Kepler-Project mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to