SOAP API: mc_issue_note_add() throws errors

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
Chewits
Posts: 10
Joined: 06 Nov 2012, 05:25

SOAP API: mc_issue_note_add() throws errors

Post by Chewits »

Hello!

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);
Except one bug (http://www.mantisbt.org/bugs/view.php?id=12541), all works fine - bugnote is added!


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 11
It's annoying enough.. What I'm doing wrong? Or this is another "mc_issue_note_add()" bug and I should register it?

P.S. several other api functions I checked work fine (mc_version(), mc_issue_get(...))
The same issue with python language and "suds" module
atrol
Site Admin
Posts: 8573
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: SOAP API: mc_issue_note_add() throws errors

Post by atrol »

I recommend to write also to mantisbt-soap-dev mailing list for such kind of questions
http://www.mantisbt.org/mailinglists.php
Please use Search before posting and read the Manual
Post Reply