Suds + JIRA = SAXException

I am using Python 2.6 and suds 0.3.7 to interact with JIRA 4.0.

When I connect to the JIRA server, I get information about all the problems simply.

However, when I want to update the problem, I get a SAXException from the foam (presumably):

WebFault: server error occurred: org.xml.sax.SAXException: detected character data inside an array element during deserialization

I follow the steps described here: http://confluence.atlassian.com/display/JIRA/Creating+a+SOAP+Client

replaces SOAPpy calls with foam.

My attempt to update the problem looks like this: complete with exceptions:

 >>> w="http://bugs/rpc/soap/jirasoapservice-v2?wsdl"
 >>> from suds.client import Client
 >>> client = Client(w)
 >>> auth = client.service.login("myname","mypass")
 >>> issue = client.service.getIssue(auth,"BUG-30112")
 >>> issue.summary
 This is the original summary for BUG-30112
 >>> 
 >>> client.service.updateIssue(auth,"BUG-30112",[
 ...            {"id":"summary","values":["My new summary"]}])

 Traceback (most recent call last):
   File "<interactive input>", line 2, in <module>
   File "C:\Python26\lib\suds\client.py", line 535, in __call__
     return client.invoke(args, kwargs)
   File "C:\Python26\lib\suds\client.py", line 595, in invoke
     result = self.send(msg)
   File "C:\Python26\lib\suds\client.py", line 630, in send
     result = self.failed(binding, e)
   File "C:\Python26\lib\suds\client.py", line 681, in failed
     r, p = binding.get_fault(reply)
   File "C:\Python26\lib\suds\bindings\binding.py", line 235, in get_fault
     raise WebFault(p, faultroot)
 WebFault: Server raised fault: 'org.xml.sax.SAXException: Found character data inside an array element while deserializing'
 >>>

Has anyone seen such a problem?

+3
source share
3

, 3.0.9 ()... .

+1

, , ? wirehark. SOAPpy , . : -/

~ Matt

+1

, SOAPpy, - . . SOAPpy, , , , . SOAPpy !

, .

+1

Source: https://habr.com/ru/post/1720829/


All Articles