How to access Spira v3.x SOAP web services using Python ?

Thursday, October 17, 2013
I have to access SpiraTest SOAP web service for python.

So, Can I get knowledge base code for SOAP service for Spiratest using Python ?
2 Replies
Friday, October 25, 2013
re: nilesh Thursday, October 17, 2013

Hi Nilesh

You would use something like:

from suds.client import Client
from import Import, ImportDoctor
from suds.wsse import *

WDSLFile =
client = Client(WDSLFile,doctor=schema_doctor)
resp = client.service.Connection_Authenticate("myUsername","myPassword")



Thursday, July 17, 2014
re: inflectra.david Friday, October 25, 2013
It seems the answer provided by Adam is incomplete (where is that schema_doctor variable defined?) but at least it pointed me to the right place:

For reference, here is a re-transcript of the solution:
from suds.client import Client
from import Import, ImportDoctor

# Obviously I made this up    
wsdl_url = 'http://whatever/path/to/wsdl'

# Fix missing types with ImportDoctor
schema_url = ''
schema_import = Import(schema_url)
schema_doctor = ImportDoctor(schema_import)

# Pass doctor to Client
client = Client(url=wsdl_url, doctor=schema_doctor)

Spira Helps You Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885


  • Started: Thursday, October 17, 2013
  • Last Reply: Thursday, July 17, 2014
  • Replies: 2
  • Views: 9034