Package suds :: Module client :: Class SoapClient
[hide private]
[frames] | no frames]

Class SoapClient

source code

Known Subclasses:

A lightweight soap based web client **not intended for external use

Instance Methods [hide private]
 
__init__(self, client, method) source code
builtin|subclass of Object
invoke(self, args, kwargs)
Send the required soap message to invoke the specified method
source code
builtin or subclass of Object
send(self, soapenv)
Send soap message.
source code
dict
headers(self)
Get http headers or the http/https request.
source code
builtin, Object
succeeded(self, binding, reply)
Request succeeded, process the reply
source code
 
failed(self, binding, error)
Request failed, process reply based on reason
source code
 
location(self) source code
 
last_sent(self, d=None) source code
 
last_received(self, d=None) source code
Instance Variables [hide private]
libcookie.CookieJar cookiejar
A cookie jar.
Method method
A target method.
dict options
A dictonary of options.
Service service
The target method.
Method Details [hide private]

__init__(self, client, method)
(Constructor)

source code 
Parameters:
  • client (Client) - A suds client.
  • method (Method) - A target method.

invoke(self, args, kwargs)

source code 

Send the required soap message to invoke the specified method

Parameters:
  • args (list) - A list of args for the method invoked.
  • kwargs (dict) - Named (keyword) args for the method invoked.
Returns: builtin|subclass of Object
The result of the method invocation.

send(self, soapenv)

source code 

Send soap message.

Parameters:
  • soapenv (Document) - A soap envelope to send.
Returns: builtin or subclass of Object
The reply to the sent message.

headers(self)

source code 

Get http headers or the http/https request.

Returns: dict
A dictionary of header/values.

succeeded(self, binding, reply)

source code 

Request succeeded, process the reply

Parameters:
Returns: builtin, Object
The method result.
Raises:

failed(self, binding, error)

source code 

Request failed, process reply based on reason

Parameters: