The service module provides the methods and classes for producing the soap service
New type_name, same type_info.
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.
Lets you create a class programmatically.
This class serves as the base for all soap services. Subclasses of this class will use the rpc decorator to flag methods to be exposed via soap. This class is responsible for generating the wsdl for this service definition.
It is a natural abstract base class, because it’s of no use without any method definitions, hence the ‘Base’ suffix in the name.
A private method for adding bindings to the wsdl
@param the root element of the wsdl @param the name of this service
A private method for adding message elements to the wsdl @param the the root element of the wsdl
A method for adding the appropriate entries to the schema for the types in the specified methods.
Returns a list of method descriptors for this object
Called in place of the original method call.
@param the original method call @param the arguments to the call
Returns the metod descriptor based on element name or soap action.
Returns the service name(s) for this service. If this object has callbacks, then a second service is declared in the wsdl for those callbacks.
Called BEFORE the service implementing the functionality is called
@param the method name @param the tuple of python params being passed to the method @param the soap elements for each argument
Called BEFORE the exception is serialized, when an error occurs during execution.
@param the exception object
Called AFTER the exception is serialized, when an error occurs during execution.
@param the xml element containing the exception object serialized to a soap fault
Called AFTER the service implementing the functionality is called, with native return object as argument
@param the python results from the method
Called AFTER the service implementing the functionality is called, with native return object serialized to Element objects as argument.
@param the xml element containing the return value(s) from the method
Method decorator to flag a method as a document-style operation.
It will behave like a normal python method on a class, and will only behave differently when the keyword ‘_method_descriptor’ is passed in, returning a ‘MethodDescriptor’ object.
This decorator does none of the soap/xml serialization, only flags a method as a soap method. This decorator should only be used on member methods of an instance of a class derived from ‘ServiceBase’.
Moving forward, this method is being depricated in favor of @soap Presently it simply calls @soap after setting _style keyword argument to soaplib.core.DOC_STYLE
This is a method decorator to flag a method as a remote procedure call. It will behave like a normal python method on a class, and will only behave differently when the keyword ‘_method_descriptor’ is passed in, returning a ‘MethodDescriptor’ object. This decorator does none of the soap/xml serialization, only flags a method as a soap method. This decorator should only be used on member methods of an instance of ServiceBase.
Moving forward, this method is being depricated in favor of @soap Presently it simply calls @soap after checking for the _style keyword argument. If the _style argument is not supplied it defaults to soaplib.core.styles.RPC_STYLE
This is a method decorator to flag a method as a remote procedure call. It will behave like a normal python method on a class, and will only behave differently when the keyword ‘_method_descriptor’ is passed in, returning a ‘MethodDescriptor’ object. This decorator does none of the soap/xml serialization, only flags a method as a soap method. This decorator should only be used on member methods of an instance of ServiceBase.