I'm trying to take advantage of SOAP API, in particular, to add a bugnote:
Code: Select all
<?php
$url = 'http://path_to_mantisconnect.php';
$client = new SoapClient($url . '?wsdl');
$issueNoteData = array(
'text' => 'test'
);
$result = $client->mc_issue_note_add('admin', 'password', 12345, $issueNoteData);But I also always get an error like this:
Code: Select all
>php test.php
PHP Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML document in /tmp/test.php:11
Stack trace:
#0 /tmp/test.php(11): SoapClient->__call('mc_issue_note_a...', Array)
#1 /tmp/test.php(11): SoapClient->mc_issue_note_add('admin', 'password', 12345, Array)
#2 {main}
thrown in /tmp/test.php on line 11P.S. several other api functions I checked work fine (mc_version(), mc_issue_get(...))
The same issue with python language and "suds" module