[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A simple SOAP client
- From: Michal Kolodziejczyk <miko@...>
- Date: Thu, 15 Oct 2009 00:43:37 +0200
Thijs Koerselman wrote:
> But I seem to be missing something obvious. I copied soap.lua and
> http.lua from the LuaSOAP library to my script directory. The script
> starts with:
>
> require "luarocks.require"
> require "http"
>
> This triggers an error about "luasocket" which can't be found. I
> initially thought it had something to do with luarocks, but it seems
> that in http.lua there is a line: require "luasocket" which I think
> should read: require "socket".
No, it should be left as it was. You should install luasocket (which is
a prerequisite) either using luarocks, or with your OS package manager
(if it is available).
> After fixing this error I run into the next in soap.lua:
> module(arg and arg[1]) which gets a nil argument. Then I change this to
> module("soap") and I run into the next....
Change it to:
module(...)
It should work then.
> What is going on here? Am I trying to use an outdated version of LuaSOAP?
Yes, but with above change it still works (I just run a test, and it
seems to work).
Regards,
miko