File soap.lua

LuaSoap implementation for Lua. See Copyright Notice in license.html $Id: soap.lua,v 1.8 2007/10/21 12:43:21 gareuselesinge Exp $

Functions

attrs (a) Serialize the table of attributes.
contents (obj) Serialize the children of an object.
decode (doc) Converts a SOAP message into Lua objects.
encode (namespace, method, entries, header) Converts a LuaExpat table into a SOAP message.
find_xmlns (attr)
serialize (obj) Serialize an object.


Functions

attrs (a)
Serialize the table of attributes.

Parameters

  • a: Table with the attributes of an element.

Return value:

String representation of the object.
contents (obj)
Serialize the children of an object.

Parameters

  • obj: Table with the object to be serialized.

Return value:

String representation of the children.
decode (doc)
Converts a SOAP message into Lua objects.

Parameters

  • doc: String with SOAP document.

Return value:

String with namespace, String with method's name and Table with SOAP elements (LuaExpat's format).
encode (namespace, method, entries, header)
Converts a LuaExpat table into a SOAP message.

Parameters

  • namespace: String with the namespace of the elements.
  • method: String with the method's name.
  • entries: Table of SOAP elements (LuaExpat's format).
  • header: Table describing the header of the SOAP-ENV (optional).

Return value:

String with SOAP-ENV element.
find_xmlns (attr)

Parameters

  • attr: Table of object's attributes.

Return value:

String with the value of the namespace ("xmlns") field.
serialize (obj)
Serialize an object.

Parameters

  • obj: Table with the object to be serialized.

Return value:

String with representation of the object.

Valid XHTML 1.0!