1
1stpoint
Hello group, I have been using Python suds to try to consume a web service. I am able to use tools like SOAPUI and it works but when I it in python I get Assertion Failure.
Here is my code
if __name__== '__main__':
from suds.client import Client
import logging
logging.basicConfig(filename="suds.log",level=logging.INFO)
logging.getLogger('suds.wsdl').setLevel(logging.DEBUG)
obieeserver='http://hostname:port/analytics-ws/saw.dll/wsdl/v7'
rptRef='myReport'
paramRpt=''
client = Client(obieeserver)
sessionid = client.service['SAWSessionService'].logon('uid','pwd')
print 'sessionid=',sessionid
reportservice=client.service['ReportEditingService']
result=reportservice.generateReportSQL(rptRef, paramRpt, sessionid)
print 'result=',type(result)
Here is my output:
sessionid= fq3c0f0ec7hrql07fspk7fdu4esih16pp4eql9a
Traceback (most recent call last):
File "obieetest.py", line 90, in <module>
result=reportservice.generateReportSQL(rptRef, paramRpt, sessionid)
File "build\bdist.win32\egg\suds\client.py", line 542, in __call__
File "build\bdist.win32\egg\suds\client.py", line 602, in invoke
File "build\bdist.win32\egg\suds\client.py", line 651, in send
File "build\bdist.win32\egg\suds\client.py", line 688, in succeeded
File "build\bdist.win32\egg\suds\bindings\binding.py", line 151, in get_reply
File "build\bdist.win32\egg\suds\bindings\binding.py", line 182, in detect_fault
suds.WebFault: Server raised fault: 'Assertion failure: criteria at line 296 of /net/adcnas420/export/ifarm_base/ifarm_views/aime_bifndn_430300/bifndn/analytics_web/main/project/webformatengine/formatengine.cpp'
Here is my code
if __name__== '__main__':
from suds.client import Client
import logging
logging.basicConfig(filename="suds.log",level=logging.INFO)
logging.getLogger('suds.wsdl').setLevel(logging.DEBUG)
obieeserver='http://hostname:port/analytics-ws/saw.dll/wsdl/v7'
rptRef='myReport'
paramRpt=''
client = Client(obieeserver)
sessionid = client.service['SAWSessionService'].logon('uid','pwd')
print 'sessionid=',sessionid
reportservice=client.service['ReportEditingService']
result=reportservice.generateReportSQL(rptRef, paramRpt, sessionid)
print 'result=',type(result)
Here is my output:
sessionid= fq3c0f0ec7hrql07fspk7fdu4esih16pp4eql9a
Traceback (most recent call last):
File "obieetest.py", line 90, in <module>
result=reportservice.generateReportSQL(rptRef, paramRpt, sessionid)
File "build\bdist.win32\egg\suds\client.py", line 542, in __call__
File "build\bdist.win32\egg\suds\client.py", line 602, in invoke
File "build\bdist.win32\egg\suds\client.py", line 651, in send
File "build\bdist.win32\egg\suds\client.py", line 688, in succeeded
File "build\bdist.win32\egg\suds\bindings\binding.py", line 151, in get_reply
File "build\bdist.win32\egg\suds\bindings\binding.py", line 182, in detect_fault
suds.WebFault: Server raised fault: 'Assertion failure: criteria at line 296 of /net/adcnas420/export/ifarm_base/ifarm_views/aime_bifndn_430300/bifndn/analytics_web/main/project/webformatengine/formatengine.cpp'