Mantisconnect + python
Ambrish Yadav <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.mantis.general |
|---|---|
| Message-ID | <[email protected]> |
Hi all, Has anyone implemented a client in python with SOAPpy for mantisconnect ? I could successfully implement "mc_issue_get_id_from_summary" and "mc_issue_add". However I have problems with "mc_issue_note_add" This is the request *** Outgoing SOAP ****************************************************** <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" > <SOAP-ENV:Body> <ns1:mc_issue_note_add xmlns:ns1="http://futureware.biz/mantisconnect" SOAP-ENC:root="1"> <note> <notes xsi:type="xsd:string">This is my update note</notes> </note> <username xsi:type="xsd:string">user</username> <password xsi:type="xsd:string">pass</password> <issue_id xsi:type="xsd:int">100</issue_id> </ns1:mc_issue_note_add> </SOAP-ENV:Body> </SOAP-ENV:Envelope> However if i manually change this request to <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" > <SOAP-ENV:Body> <ns1:mc_issue_note_add xmlns:ns1="http://futureware.biz/mantisconnect" SOAP-ENC:root="1"> <username xsi:type="xsd:string">user</username> <password xsi:type="xsd:string">pass</password> <issue_id xsi:type="xsd:int">100</issue_id> <note> <notes xsi:type="xsd:string">This is my update note</notes> </note> </ns1:mc_issue_note_add> </SOAP-ENV:Body> </SOAP-ENV:Envelope> i.e. manually moving the note element after "issue_id" and firing the request, it works. Is this a SOAPpy issue ? What I am trying to do is, 1. Before an issue is added, search the issue with the "summary" field and if it the issue already exists then just add a note (as a an update) 2. If issue does not exist, simply add the issue. So the "add note" to an existing issue is the problem for me right now. Tested with Mantis version: 1.2.0 Cheers Ambi ------------------------------------------------------------------------------ _______________________________________________ mantisbt-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mantisbt-help