21

I have just installed the Mantis bug tracker to use together with Eclipse IDE and have started too found out the advantages of it. Really great.

Since Eclipse communicates with Mantis through an PHP soap API, I wonder if there's some documentation available on how I can myself make calls, from my PHP application to the API to add new bugs and get statuses of existing ones.

Thanks a lot!

Industrial
  • 41,400
  • 69
  • 194
  • 289

2 Answers2

44

I too was looking for an answer to this and thought I'd add my findings to this question so I can find them again later (and hopefully they're of use to someone else too)

The URL of the SOAP API is $(MANTIS_URI)/api/soap/mantisconnect.php (e.g. if your Mantis is usually accessed at http://localhost/mantis/ then go to http://localhost/mantis/api/soap/mantisconnect.php)

It uses NuSOAP which means that if you point your web browser at that URL you get HTML documentation of the web service; most of the actions seem to have sensible names and a one-line description of what it does. The WSDL can be downloaded at $(MANTIS_URI)/api/soap/mantisconnect.php?wsdl and, because I'm using C#, running wsdl.exe on that URL gives me a basic strongly-typed client library for the service that seems pretty easy to work with.

Dave Turner
  • 1,846
  • 16
  • 27
  • 1
    Hi Dave Thanks a lot for your answer. Yep - mantisconnect.php does the magic. However I didn't know about the documentation, guessing that it would have been eeasier with it :) – Industrial Jul 31 '10 at 10:42
  • Every API project I did have such documentation on api endpoint – Shiplu Mokaddim Oct 15 '12 at 08:14
-5

I was able to sort it out myself while using php soapCall functions and going through the code, step by step. Took really long time, but It worked out at least...

Industrial
  • 41,400
  • 69
  • 194
  • 289