Module soap

LuaSoap implementation for Lua.

See Copyright Notice in license.html

Functions

escape (text) Escape special characters.
unescape (text) Unescape special characters.
attrs (a) Serialize the table of attributes.
serialize (obj) Serialize an object.
encode (args) Converts a LuaExpat table into a SOAP message.
decode (doc) Converts a SOAP message into Lua objects.


Functions

escape (text)
Escape special characters.

Parameters:

  • text
unescape (text)
Unescape special characters.

Parameters:

  • text
attrs (a)
Serialize the table of attributes.

Parameters:

  • a Table with the attributes of an element.

Returns:

    String representation of the object.
serialize (obj)
Serialize an object.

Parameters:

  • obj Table with the object to be serialized.

Returns:

    String with representation of the object.
encode (args)
Converts a LuaExpat table into a SOAP message.

Parameters:

  • args Table with the arguments, which could be: 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 envelope (optional); internal_namespace: String with the optional namespace used as a prefix for the method name (default = ""); soapversion: Number of SOAP version (default = 1.1);

Returns:

    String with SOAP envelope element.
decode (doc)
Converts a SOAP message into Lua objects.

Parameters:

  • doc String with SOAP document.

Returns:

    String with namespace, String with method's name and Table with SOAP elements (LuaExpat's format).
generated by LDoc 1.4.6 Last updated 2024-09-26 20:37:35