Previous topic

Xml

Next topic

Dictionary Document

This Page

Soap 1.1

class spyne.protocol.soap.soap11.Soap11(app=None, validator=None, xml_declaration=True, cleanup_namespaces=True, encoding='UTF-8', pretty_print=False)[source]

Bases: spyne.protocol.xml.XmlDocument

The base implementation of a subset of the Soap 1.1 standard. The document is available here: http://www.w3.org/TR/soap11/

Parameters:
  • app – The owner application instance.
  • validator – One of (None, ‘soft’, ‘lxml’, ‘schema’, ProtocolBase.SOFT_VALIDATION, XmlDocument.SCHEMA_VALIDATION). Both 'lxml' and 'schema' values are equivalent to XmlDocument.SCHEMA_VALIDATION.
  • xml_declaration – Whether to add xml_declaration to the responses Default is ‘True’.
  • cleanup_namespaces – Whether to add clean up namespace declarations in the response document. Default is ‘True’.
  • encoding – The suggested string encoding for the returned xml documents. The transport can override this.
  • pretty_print – When True, returns the document in a pretty-printed format.
create_in_document(ctx, charset=None)[source]
decompose_incoming_envelope(ctx, message=<class 'spyne.protocol._base.Request'>)[source]
deserialize(ctx, message)[source]

Takes a MethodContext instance and a string containing ONE soap message. Returns the corresponding native python object

Not meant to be overridden.

fault_to_http_response_code(fault)[source]
mime_type = 'text/xml; charset=utf-8'
serialize(ctx, message)[source]

Uses ctx.out_object, ctx.out_header or ctx.out_error to set ctx.out_body_doc, ctx.out_header_doc and ctx.out_document as an lxml.etree._Element instance.

Not meant to be overridden.

type = set(['xml', 'soap11', 'soap'])
spyne.protocol.soap.soap11.resolve_hrefs(element, xmlids)[source]