suds.TypeNotFound:未找到类型:'ns4.SaveCRRequest'

时间:2012-12-19 05:57:19

标签: python suds

有没有人有关于如何调试或克服此错误的输入?

Traceback (most recent call last):
  File ".\move2ready.py", line 318, in <module>
    main()
  File ".\move2ready.py", line 268, in main
    success = moveToReady(prism, cr, pl_name)
  File ".\move2ready.py", line 153, in moveToReady
    retval = prism.saveChangeRequest(CR)
  File ".\move2ready.py", line 75, in saveChangeRequest
    request = self.soapclient.factory.create('ns4:SaveCRRequest')
  File "build\bdist.win32\egg\suds\client.py", line 234, in create

suds.TypeNotFound: Type not found: 'ns4:SaveCRRequest'

以下是子程序

 def saveChangeRequest(self, CR):
    request = self.soapclient.factory.create('ns4:SaveCRRequest')
    request['ChangeRequest'] = CR
    request['UserName'] = 'admin'
    response = self.soapclient.service.SaveChangeRequest([request])
    return response['ChangeRequestId']

0 个答案:

没有答案