View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0026492 | mantisbt | api soap | public | 2019-12-24 07:49 | 2020-01-06 06:23 |
Reporter | intervision | Assigned To | dregad | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 2.22.1 | ||||
Summary | 0026492: Object of class SoapFault could not be converted to int | ||||
Description | Somethihg strange with mc_issue_add. I try to add new issue via soap api with PHP, so i describe variables like this:
and so on... But when i try to execute a request i got an error: Array ( [faultcode] => SOAP-ENV:Server [faultstring] => Error Type: SYSTEM NOTICE, Error Description: Object of class SoapFault could not be converted to int ) So i don't know where this class came from, what is it and how to fix it... | ||||
Tags | No tags attached. | ||||
It is hard to give specific help, since you're not providing any details about the client code... I'm able to create issues via mc_issue_add() on my dev box without any problems. SOAP API normally throws SoapFault exception when something goes wrong; the error could be client- or server-side. Are you catching the exception ? Then you can call getMessage() to learn more about why it failed. Check your webserver's log for errors. You can also try setting |
|
There are no errors in logs. The full part of code is this:
EDIT (dregad) fix markdown |
|
Is there any particular reason for using NuSOAP for the client ? We gave up on that long ago because the library was unmaintained and not supporting newer PHP versions, and switched to using native PHP SOAP extension. Can you try with this snippet, see if that makes any difference in your environment ? |
|
Actually no ) I'm not a programmer so i tried to do what i need based on some manuals. I'll try your suggestion, please give me some time, thanks. |
|
Yes, your solution works fine, thanks a lot |
|
Thanks for the feedback, glad I could help |
|