LuaSOAP
SOAP interface for the Lua programming language

Examples

Client example

Below is a small sample code displaying the use of the library in a client application.
require "soap.client"
local ns, meth, ent = soap.client.call {
	url = "http://soap.4s4c.com/ssss4c/soap.asp", 
	soapaction = "doubler",
	method = "http://simon.fell.com/calc",
	entries = {
        {
            tag = "nums",
            attr = {
                ["xmlns:SOAP-ENC"] = "http://schemas.xmlsoap.org/soap/encoding/",
                ["SOAP-ENC:arrayType"] = "xsd:int[5]",
            },
            { tag = "number", 10 },
            { tag = "number", 20 },
            { tag = "number", 30 },
            { tag = "number", 50 },
            { tag = "number", 100 },
        },
    }
}
print("namespace = ", ns, "element name = ", meth)
for i, elem in ipairs (ent[1]) do
	print (elem[1])
end

Valid XHTML 1.0!

$Id: examples.html,v 1.2 2009/07/22 19:02:46 tomas Exp $