The spyne.interface package contains the implementations of various interface document standards.
Bases: object
The Interface class holds all information needed to build an interface document.
Parameters: | app – A spyne.application.Application instance. |
---|
Returns the class definition that corresponds to the given key. Keys are in ‘{namespace}class_name’ form, a.k.a. XML QName format.
Not meant to be overridden.
Returns the default class instance that corresponds to the given key. Keys are in ‘{namespace}class_name’ form, a.k.a. XML QName format. Classes should not enforce arguments to the constructor.
Not meant to be overridden.
Returns service name that is seen in the name attribute of the definitions tag.
Not meant to be overridden.
Returns the namespace prefix for the given namespace. Creates a new one automatically if it doesn’t exist.
Not meant to be overridden.
Returns default namespace that is seen in the targetNamespace attribute of the definitions tag.
Not meant to be overridden.
Returns true if the given class is already included in the interface object somewhere.
Harvests the information stored in individual classes’ _type_info dictionaries. It starts from function definitions and includes only the used objects.
Returns default namespace that is seen in the targetNamespace attribute of the definitions tag.
Not meant to be overridden.
Bases: object
Base class for all interface document implementations.
Parameters: | interface – A spyne.interface.InterfaceBase instance. |
---|
This function is supposed to be called just once, as late as possible into the process start. It builds the interface document and caches it somewhere. The overriding function should never call the overridden function as this may result in the same event firing more than once.
This function is called by server transports that try to satisfy the request for the interface document. This should just return a previously cached interface document.
The implementation of a subset of the Xml Schema 1.0 object definition document standard.
The standard is available in three parts as follows: http://www.w3.org/TR/xmlschema-0/ http://www.w3.org/TR/xmlschema-1/ http://www.w3.org/TR/xmlschema-2/
Parameters: | interface – A spyne.interface.InterfaceBase instance. |
---|
Called right after the document is built. The handler gets the XmlSchema instance as the only argument.
Called right after the document is built. The handler gets the XmlSchema instance as the only argument. Only called from this class.
Build application schema specifically for xml validation purposes.
The spyne.interface.wsdl.wsdl11 module contains an implementation of a subset of the Wsdl 1.1 document standard and its helper methods.
The implementation of the Wsdl 1.1 interface definition document standard which is avaible here: http://www.w3.org/TR/wsdl
Parameters: |
|
---|
Called right after the document is built. The handler gets the Wsdl11 instance as the only argument. Also called by XmlSchema class.
Called right after the document is built. The handler gets the Wsdl11 instance as the only argument. Only called from this class.
Build application schema specifically for xml validation purposes.
Returns the SchemaInfo object for the corresponding namespace. It creates it if it doesn’t exist.
The SchemaInfo object holds the simple and complex type definitions for a given namespace.
Return schema node for the given namespace prefix.