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