|
From: Robert M. <rob...@gm...> - 2013-08-22 22:30:14
|
Hi,
On Tue, Aug 20, 2013 at 11:55 AM, Jean-Philippe BATTU <je...@fr...> wrote:
>
>
> Hello
> I use Mantis BT 121 and would like to query the database from another machine to get the full list of the defects
Is that MantisBT 1.2.1? I strongly suggest you upgrade, there have
been many fixes added to the SOAP API after this release.
>
> To do this, i use a web service, with soapclient
> My problem is with the php function mc_filter_get() which returns some data but only 4 ! I have much more open defect in my working database
Please show me the request/response in XML format ( be sure to
mask/remove the password ) . I can't judge based on PHP code, even
though MantisBT is written in PHP :-)
Thanks,
Robert
>
> here is my simple php code :
>
> <?php
>
> require_once('library/nusoap/nusoap.php');
>
> $username = 'myuser';
> $password = 'mypassword';
>
> $endpoint = "https://novahpc.frec.bull.fr/mantis-default/mantis/api/soap/mantisconnect.php";
>
> $c = new SoapClient($endpoint);
>
> $r = $c->call('mc_filter_get',array($username, $password, 6));
>
> foreach ( $r as $k => $v )
> printf( "<p>id: <b>%s</b></p>" , $v[ 'id' ] ) ;
>
>
> print_r($r);
> printf( "<p><br><br><br>Taille : %s<br><br><br></p>" , count( $r ) ) ;
> ?>
>
> and i get only four items in my array
> Any suggestions would be greatly appreciated
>
> Cheers
>
> Jean-Philippe
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Mantisbt-soap-dev mailing list
> Man...@li...
> https://lists.sourceforge.net/lists/listinfo/mantisbt-soap-dev
>
--
http://robert.muntea.nu/
|