MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / envelope

Method envelope

suds/bindings/binding.py:313–327  ·  view source on GitHub ↗

Build the B{ } for an soap outbound message. @param header: The soap message B{header}. @type header: L{Element} @param body: The soap message B{body}. @type body: L{Element} @return: The soap envelope containing the body and header.

(self, header, body)

Source from the content-addressed store, hash-verified

311 return marshaller.process(content)
312
313 def envelope(self, header, body):
314 """
315 Build the B{<Envelope/>} for an soap outbound message.
316 @param header: The soap message B{header}.
317 @type header: L{Element}
318 @param body: The soap message B{body}.
319 @type body: L{Element}
320 @return: The soap envelope containing the body and header.
321 @rtype: L{Element}
322 """
323 env = Element('Envelope', ns=envns)
324 env.addPrefix(Namespace.xsins[0], Namespace.xsins[1])
325 env.append(header)
326 env.append(body)
327 return env
328
329 def header(self, content):
330 """

Callers 1

get_messageMethod · 0.95

Calls 3

addPrefixMethod · 0.95
appendMethod · 0.95
ElementClass · 0.90

Tested by

no test coverage detected