I'm attempting to write a simple SOAP client in Python that consumes a WSDL file. I've tried pysimplesoap and SUDS and both of these fail for various reasons.
from pysimplesoap.client import SoapClient
wsdl = "http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl"
client = SoapClient(wsdl=wsdl)
print client
The pysimplesoap client fails with AttributeError: Tag not found: service (No elements found)
from SOAPpy import WSDL
wsdlFile = "http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl"
server = WSDL.Proxy(wsdlFile)
The SOAPpy client throws an IndexError: list index out of range
exception.
I a total newbie to SOAP, so I'm guessing that I've made a very basic error somewhere.