A fork of https://github.com/Synerty/SOAPpy-py3 This is a working tree till fixes get imported upstream.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 lines
227 B

  1. import sys
  2. sys.path.insert(1, "..")
  3. import SOAPpy
  4. url = 'http://www.xmethods.org/sd/2001/TemperatureService.wsdl'
  5. zip = '06340'
  6. proxy = SOAPpy.WSDL.Proxy(url)
  7. temp = proxy.getTemp(zip)
  8. print 'Temperature at', zip, 'is', temp