Package nattraverso :: Package pynupnp :: Module soap :: Class SoapProxy
[show private | hide private]
[frames | no frames]

Class SoapProxy


Proxy for an url to which we send SOAP rpc calls.
Method Summary
  __init__(self, url, prefix)
Init the proxy, it will connect to the given url, using the given soap namespace.
twisted.internet.defer.Deferred call(self, method, **kwargs)
Call the given remote method with the given arguments, as keywords.

Method Details

__init__(self, url, prefix)
(Constructor)

Init the proxy, it will connect to the given url, using the given soap namespace.
Parameters:
url - The url of the remote host to call
prefix - The namespace prefix to use, eg. 'urn:schemas-upnp-org:service:WANIPConnection:1'

call(self, method, **kwargs)

Call the given remote method with the given arguments, as keywords.

Returns a deferred, called with SOAPpy structure representing the soap response.
Parameters:
method - The method name to call, eg. 'GetExternalIP'
kwargs - The parameters of the call, as keywords
Returns:
A deferred called with the external ip address of this host
           (type=twisted.internet.defer.Deferred)

Generated by Epydoc 2.1 on Tue Aug 30 14:56:47 2005 http://epydoc.sf.net