You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did simple test.
Generate a SOAP output using encode() method and after that I tried decode this with inverse method so I had the error: soap.lua:239: attempt to index local 'o' (a nil value)
Detail: The generated SOAP output haven't soap:Header session (optional by standard)
Example code below:
function test_soap()
local soap = require "soap.soap"
local simple = { namespace = "Some-URI",
method = "Run_Query",
entries = {
{ tag = "Query_text", "select * from teste" }
} }
local ret = soap.encode( simple )
ret = [[]] .. ret
print( ret )
local ns, meth, ent = soap.decode( ret )
print( ns, meth )
return ret
end
The text was updated successfully, but these errors were encountered:
I did simple test.
Generate a SOAP output using encode() method and after that I tried decode this with inverse method so I had the error: soap.lua:239: attempt to index local 'o' (a nil value)
Detail: The generated SOAP output haven't soap:Header session (optional by standard)
Example code below:
function test_soap()
local soap = require "soap.soap"
local simple = { namespace = "Some-URI",
method = "Run_Query",
entries = {
{ tag = "Query_text", "select * from teste" }
} }
local ret = soap.encode( simple )
ret = [[]] .. ret
print( ret )
local ns, meth, ent = soap.decode( ret )
print( ns, meth )
return ret
end
Do you have the latest version installed? This bug was already
correcter, but I've just realized that the 2.0.2 version was released
with an incorrect _VERSION (it states LuaSOAP 2.0.1).
I did simple test.
Generate a SOAP output using encode() method and after that I tried decode this with inverse method so I had the error: soap.lua:239: attempt to index local 'o' (a nil value)
Detail: The generated SOAP output haven't soap:Header session (optional by standard)
Example code below:
function test_soap()
local soap = require "soap.soap"
local simple = { namespace = "Some-URI",
method = "Run_Query",
entries = {
{ tag = "Query_text", "select * from teste" }
} }
local ret = soap.encode( simple )
ret = [[]] .. ret
print( ret )
local ns, meth, ent = soap.decode( ret )
print( ns, meth )
return ret
end
The text was updated successfully, but these errors were encountered: