View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0013825 | mantisbt | api soap | public | 2012-01-30 12:05 | 2012-02-13 06:03 |
| Reporter | olegk | Assigned To | atrol | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 1.2.8 | ||||
| Summary | 0013825: Error adding Issues and bugnotes via soap api. | ||||
| Description | I've been using SOAP for reporting issues and adding bugnotes quite successful until I wrote the plug-in, which processes events EVENT_BUGNOTE_DATA and EVENT_REPORT_BUG_DATA. Even though the plug-in does nothing but returns bug_data and note_text without being changed I have an error message "looks like we got no XML document". Further investigation showed that then the plug-in is installed there is an empty line before the xml content in response message. Content-Length: 549 and 550 shows it clearly. | ||||
| Additional Information | The plug-in is enabled but does nothing. HTTP/1.1 200 OK <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:mc_issue_note_addResponse xmlns:ns1="http://futureware.biz/mantisconnect"><return xsi:type="xsd:integer">189248</return></ns1:mc_issue_note_addResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> The plug-in is disabled. HTTP/1.1 200 OK <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:mc_issue_note_addResponse xmlns:ns1="http://futureware.biz/mantisconnect"><return xsi:type="xsd:integer">189249</return></ns1:mc_issue_note_addResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
|
Is it fixed by removing the closing ?> in your plugin? |
|
|
Thanks very much for your help it works. |
|
|
Great, thanks. |
|
|
To understand what happened read http://php.net/manual/en/language.basic-syntax.instruction-separation.php especially the note Note: |
|