Giter VIP home page Giter VIP logo

luasoap's People

Contributors

diasvictor avatar sellis-zuora avatar timsc avatar tomasguisasola avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

luasoap's Issues

Error decoding a XML SOAP withou soap:header ( generated by LuaSOAP encode() )

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

Version format for git tags.

Is it possible to switch to Xx.Yy.Zz format? I ask as I've been asked to do this for OpenWrt where most versions of packages follow that format. Changing it upstream would simplify the process.

Similar discussdion: lunarmodules/copas#70

Bugs in response processing

We found 3 issues with luasoap 3.0 (latest)

  1. list_children() fails to access the second and any further elements
    error: soap.lua:215: attempt to index global 'self' (a nil value)
  2. some webservices omit the SOAP-ENV:Header
    if SOAP-ENV:Header is missing, decode() will fail to locate the SOAP-ENV:Body
  3. decode() fails to return any response entries
    error: soap.lua:~251: attempt to index local 'obj' (a function value)
  4. because a response contains lots of whitespace entries, we suggest
    that you add something like list_children() to the public interface of soap

I can not install by luarocks!

Hi ,
I am so sorry to ask you! I can not install by luarocks,becuse I am lua5.1.and I want to install by source code,and how can i do?thanks very much!

xml/network api neutral

Hi.

Defacto luasocket is the most used network api, but, if possible do you can be adapt to works with any API (signature/error codes / layers / aka c function pointers) - the user can be responsible to implement. In same way xml library.

i.e.,
lsocket -> http://tset.de/lsocket/index.html
luacurl -> http://luacurl.luaforge.net/
luaposix -> https://github.com/luaposix/luaposix
and many others

in same way assembley the xml soap/envelope, p. ex., implementations with support to attributes in pure lua or binding.

luasocket x.y + luasec 0.x = problematic ;)

soap.lua installed to wrong place wrt. require name

After "make install", I have program doing require'soap.client' and with fails with the following error:

lua: /usr/share/lua/5.1/soap/client.lua:13: module 'soap' not found:
    no field package.preload['soap']
    no file './soap.lua'
    no file '/usr/local/share/lua/5.1/soap.lua'
    no file '/usr/local/share/lua/5.1/soap/init.lua'
    no file '/usr/local/lib/lua/5.1/soap.lua'
    no file '/usr/local/lib/lua/5.1/soap/init.lua'
    no file '/usr/share/lua/5.1/soap.lua'
    no file '/usr/share/lua/5.1/soap/init.lua'
    no file './soap.so'
    no file '/usr/local/lib/lua/5.1/soap.so'
    no file '/usr/lib/lua/5.1/soap.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
    [C]: in function 'require'
    /usr/share/lua/5.1/soap/client.lua:13: in main chunk
    [C]: in function 'require'
    mycode.lua:1: in main chunk
    [C]: ?

This is because client.lua does require'soap' but the soap.lua is installed to soap/soap.lua instead.

Should change all require'soap' to require'soap.soap' or change makefile to install soap.lua to proper path.

SOAP:Header isn't recognized

soap.lua's decode fails doubly if given an XML with a SOAP:Header: it fails because the standard function error isn't present in the scope, and because it expects the first element to be a SOAP:Body, which fails in the presence of a SOAP:Header.

[Question] Example for my use case?

Hello!

This library I believe should be able to meet a goal of mine. I would like to use OpenResty paired with this lib to do a few things:

Take an incoming SOAP payload and:

  1. Parse a SOAP Header element and get its value for processing AND remove that Header element from the SOAP payload.

  2. Append a few extra SOAP Header elements on the existing body before proxying off the payload to another service.

Can this library do this? Any chance you could give me a snippit after I luarocks install of what the above would look like? I imagine it is probably only 5-10 lines of code using your library?

Thanks,
Jeremy

run "sudo luarocks install luasoap" got a error

Hi,tanks for your good job.I try to install luasoap,but I get a error,the error is:
`sudo luarocks install luasoap
Installing https://rocks.moonscript.org/luasoap-4.0.1-1.rockspec...
Using https://rocks.moonscript.org/luasoap-4.0.1-1.rockspec... switching to 'build' mode

Missing dependencies for luasoap:
http-digest >= 1.2.2-1

Using https://rocks.moonscript.org/http-digest-1.2.2-1.src.rock... switching to 'build' mode

Missing dependencies for http-digest:
md5

Using https://rocks.moonscript.org/md5-1.3-1.rockspec... switching to 'build' mode

Error: Failed installing dependency: https://rocks.moonscript.org/http-digest-1.2.2-1.src.rock - Failed installing dependency: https://rocks.moonscript.org/md5-1.3-1.rockspec - Error fetching file: Failed downloading https://github.com/keplerproject/md5/archive/1.3.tar.gz - tlsv1 alert protocol version
`
wolud you help me?thanks very much!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.