Base Server
The base server provides a generic interface for soap servers.
A soap server that uses http as transport, and wsgi as bridge api
-
class soaplib.core.server._base.Base(app)
Bases: object
-
get_in_object(ctx, in_string, in_string_charset=None)
-
get_out_object(ctx, in_object)
-
get_out_string(ctx, out_object)
-
exception soaplib.core.server._base.ValidationError(faultcode='Server', faultstring='', faultactor='', detail=None)
Bases: soaplib.core.model.exception.Fault
-
class Annotations
Bases: object
-
class ValidationError.Attributes
Bases: object
-
class ValidationError.Empty
Bases: object
-
ValidationError.add_to_parent_element(tns, parent)
-
classmethod ValidationError.add_to_schema(schema_dict)
-
ValidationError.args
-
classmethod ValidationError.customize(**kwargs)
This function duplicates and customizes the class it belongs to. The
original class remains unchanged. This is an ugly hack. If you know
better, let us know.
-
classmethod ValidationError.from_xml(element)
-
classmethod ValidationError.get_namespace()
-
classmethod ValidationError.get_namespace_prefix(app)
-
classmethod ValidationError.get_type_name()
-
classmethod ValidationError.get_type_name_ns(app)
-
static ValidationError.is_default()
-
ValidationError.message
-
static ValidationError.resolve_namespace(default_ns)
-
classmethod ValidationError.to_parent_element(value, tns, parent_elt, name=None)
WSGI Server
The wsgi module provides a wsgi compliant interface for soap services.
A soap server that uses http as transport, and wsgi as bridge api
-
class soaplib.core.server.wsgi.Application(app)
Bases: soaplib.core.server._base.Base
-
get_in_object(ctx, in_string, in_string_charset=None)
-
get_out_object(ctx, in_object)
-
get_out_string(ctx, out_object)
-
on_wsdl(environ, wsdl)
This is called when a wsdl is requested.
@param the wsgi environment
@param the wsdl string
-
on_wsdl_exception(environ, exc)
Called when an exception occurs durring wsdl generation.
@param the wsgi environment
@param exc the exception
@param the fault response string
-
on_wsgi_call(environ)
This is the first method called when this WSGI app is invoked.
@param the wsgi environment
-
on_wsgi_return(environ, http_headers, return_str)
Called before the application returns.
@param the wsgi environment
@param http response headers as dict
@param return string of the soap request
-
exception soaplib.core.server.wsgi.ValidationError(faultcode='Server', faultstring='', faultactor='', detail=None)
Bases: soaplib.core.model.exception.Fault
-
class Annotations
Bases: object
-
class ValidationError.Attributes
Bases: object
-
class ValidationError.Empty
Bases: object
-
ValidationError.add_to_parent_element(tns, parent)
-
classmethod ValidationError.add_to_schema(schema_dict)
-
ValidationError.args
-
classmethod ValidationError.customize(**kwargs)
This function duplicates and customizes the class it belongs to. The
original class remains unchanged. This is an ugly hack. If you know
better, let us know.
-
classmethod ValidationError.from_xml(element)
-
classmethod ValidationError.get_namespace()
-
classmethod ValidationError.get_namespace_prefix(app)
-
classmethod ValidationError.get_type_name()
-
classmethod ValidationError.get_type_name_ns(app)
-
static ValidationError.is_default()
-
ValidationError.message
-
static ValidationError.resolve_namespace(default_ns)
-
classmethod ValidationError.to_parent_element(value, tns, parent_elt, name=None)