The ServiceBase class is the base class for all service definitions.
The convention is to have public methods defined under a subclass of this class along with common properties of public methods like header classes or auxiliary processors. The spyne.decorator.srpc() decorator or its wrappers should be used to flag public methods.
It is a natural abstract base class, because it’s of no use without any method definitions, hence the ‘Base’ suffix in the name.
Called right before the service method is executed
Called right after the service method is executed
Called when an exception occurred in a service method, before the exception is serialized.
Called by the transport right after the incoming stream is parsed to the incoming protocol’s document type.
Called by the transport right after the outgoing object is serialized to the outgoing protocol’s document type.
Called by the transport right before the outgoing exception object is serialized to the outgoing protocol’s document type.
Called by the transport right before passing the return string to the client.
Called by the transport right before passing the exception string to the client.
Creates the spyne.MethodDescriptor objects by iterating over tagged methods.
return a type’s method resolution order