def soap(wsdl_url, operation, argument, save_to): print "SOAP Harvest: " + wsdl_url + " to " + save_to try: result = soap_extractor.get_coursedata(wsdl_url, operation, argument) f = codecs.open(filename, encoding='utf-8', mode="wb") f.write(result) f.close() print "...done\n" except: if STOP_ON_ERROR: raise print "...skipped due to error\n"
def test_01_get_ou_data(self): wsdl_url = 'http://host.igsl.co.uk:7101/OU-webservice-context-root/xxpSoapHttpPort?WSDL' operation = "getOUCourses" argument = "ALL" result = soap_extractor.get_coursedata(wsdl_url, operation, argument)