本文整理汇总了Python中pysimplesoap.client.SoapClient.doEnsembleURIQuery方法的典型用法代码示例。如果您正苦于以下问题:Python SoapClient.doEnsembleURIQuery方法的具体用法?Python SoapClient.doEnsembleURIQuery怎么用?Python SoapClient.doEnsembleURIQuery使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pysimplesoap.client.SoapClient
的用法示例。
在下文中一共展示了SoapClient.doEnsembleURIQuery方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_issue109bis
# 需要导入模块: from pysimplesoap.client import SoapClient [as 别名]
# 或者: from pysimplesoap.client.SoapClient import doEnsembleURIQuery [as 别名]
def test_issue109bis(self):
"""Test string arrays not defined in the wsdl (but sent in the response)"""
WSDL = 'http://globe-meta.ifh.de:8080/axis/services/ILDG_MDC?wsdl'
client = SoapClient(wsdl=WSDL,soap_server='axis')
response = client.doEnsembleURIQuery("Xpath", "/markovChain", 0, -1)
ret = response['doEnsembleURIQueryReturn']
self.assertIsInstance(ret['numberOfResults'], int)
self.assertIsInstance(ret['results'], list)
self.assertIsInstance(ret['results'][0], basestring)
示例2: test_issue35_wsdl
# 需要导入模块: from pysimplesoap.client import SoapClient [as 别名]
# 或者: from pysimplesoap.client.SoapClient import doEnsembleURIQuery [as 别名]
def test_issue35_wsdl(self):
"Test positional parameters, multiRefs and axis messages"
url = 'http://wennekers.epcc.ed.ac.uk:8080/axis/services/MetadataCatalogue?WSDL'
client = SoapClient(wsdl=url,trace=False, soap_server="axis")
response = client.doEnsembleURIQuery(queryFormat="Xpath", queryString="/markovChain", startIndex=0, maxResults=-1)
ret = response['doEnsembleURIQueryReturn']
self.assertEqual(ret['statusCode'], "MDC_INVALID_REQUEST")
self.assertEqual(ret['totalResults'], 0)
self.assertEqual(ret['startIndex'], 0)
self.assertEqual(ret['numberOfResults'], 0)
示例3: test_issue109
# 需要导入模块: from pysimplesoap.client import SoapClient [as 别名]
# 或者: from pysimplesoap.client.SoapClient import doEnsembleURIQuery [as 别名]
def test_issue109(self):
"""Test multirefs and string arrays"""
WSDL = 'http://usqcd.jlab.org/mdc-service/services/ILDGMDCService?wsdl'
client = SoapClient(wsdl=WSDL,soap_server='axis')
response = client.doEnsembleURIQuery("Xpath", "/markovChain", 0, -1)
ret = response['doEnsembleURIQueryReturn']
self.assertIsInstance(ret['numberOfResults'], int)
self.assertIsInstance(ret['results'], list)
self.assertIsInstance(ret['results'][0], basestring)
self.assertIsInstance(ret['queryTime'], basestring)
self.assertEqual(ret['statusCode'], "MDC_SUCCESS")