Package suds :: Package bindings :: Module rpc :: Class RPC
[hide private]
[frames] | no frames]

Class RPC

source code

binding.Binding --+
                  |
                 RPC
Known Subclasses:

RPC/Literal binding style.

Instance Methods [hide private]
[pdef,..]
param_defs(self, method)
Get parameter definitions.
source code
Element
envelope(self, header, body)
Build the <Envelope/> for an soap outbound message.
source code
[Element,..]
bodycontent(self, method, args, kwargs)
Get the content for the soap body node.
source code
[Element,...]
replycontent(self, method, body)
Get the reply body content.
source code
Element
method(self, method)
Get the document root.
source code

Inherited from binding.Binding: __init__, body, bodypart_types, detect_fault, get_fault, get_message, get_reply, header, headercontent, headpart_types, marshaller, mkheader, mkparam, replycomposite, replyfilter, replylist, returned_types, unmarshaller

Instance Variables [hide private]

Inherited from binding.Binding: options, schema, wsdl

Method Details [hide private]

param_defs(self, method)

source code 

Get parameter definitions. Each pdef is a tuple (name, xsd.sxbase.SchemaObject)

Parameters:
  • method - A servic emethod.
Returns: [pdef,..]
A collection of parameter definitions
Overrides: binding.Binding.param_defs
(inherited documentation)

envelope(self, header, body)

source code 

Build the <Envelope/> for an soap outbound message.

Parameters:
  • header - The soap message header.
  • body - The soap message body.
Returns: Element
The soap envelope containing the body and header.
Overrides: binding.Binding.envelope
(inherited documentation)

bodycontent(self, method, args, kwargs)

source code 

Get the content for the soap body node.

Parameters:
  • method - A service method.
  • args - method parameter values
  • kwargs - Named (keyword) args for the method invoked.
Returns: [Element,..]
The xml content for the <body/>
Overrides: binding.Binding.bodycontent
(inherited documentation)

replycontent(self, method, body)

source code 

Get the reply body content.

Parameters:
  • method - A service method.
  • body - The soap body
Returns: [Element,...]
the body content
Overrides: binding.Binding.replycontent
(inherited documentation)

method(self, method)

source code 

Get the document root. For rpc/(literal|encoded), this is the name of the method qualifed by the schema tns.

Parameters:
  • method (service.Method) - A service method.
Returns: Element
A root element.