type mismatch error when using the SDK

3 views
Skip to first unread message

Dibyajyoti Ghosh

unread,
May 8, 2008, 12:46:15 AM5/8/08
to axf-general...@googlegroups.com
Hi all once again

           The objective is to save a scan profile using Pyscan shell; For that i'm doing the following :

           >>> scanobj = Watchfire.AppScan.Scheduling.ScheduledScanFactory.CreateInstance("Hello","user","password","demo.testfire.net.scan")
           >>> Watchfire.AppScan.Scheduling.IScheduledScanManager.SaveScheduledScans({scanobj})
           >>> SyntaxError: invalid syntax

           I think the problem is with Python implementation of C++ List objects. Since in SDK
            void SaveScheduledScans(
                   List<IScheduledScan> scheduledScans
            ) abstract 
            
            Then i tried the following :

           >>> Watchfire.AppScan.Scheduling.IScheduledScanManager.SaveScheduledScans(list((IScheduledScan)scanobj))
           >>> SyntaxError: invalid syntax

           Please suggest how this problem can be addressed. It will be very kind if you can reply ASAP since i am struck with this.

Thanking You in advance
dibyajyoti
Reply all
Reply to author
Forward
0 new messages