README


Table of Contents :
1. General Informations
2. Webservice Installation
3. Evolutions since Mantis Connect 1.0a4
4. Informations about tests
5. Development of new features
Annexe:
A. Documentation generation with PhpDocumentor
B. External Links



1. General Informations

This version of Mantis Connect has been developed using : Mantis 1.0.8, NuSoap 0.7.2, PHP 5.1.6, Apache 2.2.4 and MySql 2.9.1.1.
Developement made by Alexandre Laborie from Axidea company : http://www.axidea.fr/.

2. Webservice Installation

In Mantis root folder, create a webservice folder where Mantis connect files will be. Change FILE_MANTIS_CONNECT constant config_inc.php file in test-unitaire folder. To ensure a correct install you have to run the test senario with correct results. To do this, you need an empty Mantis database with only a admin account, then you'll have to log in Mantis and do the following actions:

Do not forget that the following conditions must be met : /!\ WARNING : The test script sends a batch of e-mail notifications. In order not to overload your mail server, use local email mechanism
/!\ WARNING : The execution time of the script is fairly long, about 120 seconds on an Athlon 2800 + with 1GB of RAM. So be patient!

From now on you can run the test script. If all test results are correct (indicated by a green background), the webservice is operational, otherwise check the configuration of webservice and Mantis, as well as the prerequisites listed above.

3. Evolutions since Mantis Connect 1.0a4

From version 1.0a4 of Mantis Connect (Available here: http://sourceforge.net/projects/mantisconnect/), the following enhancements have been made:

4. Informations about tests

For the development of this new version of Mantis Connect, a series of tests were carried out to ensure the functioning of the webservice. These tests are available and gives an example of webservice usage. The tests are divided into two folders, test-integration and test-unitaire. The scripts in the test-unitaire folder test only a single webservice. If you use them be sure to change the informations that are stored in the $ aParametres array. The script in test-integration folder test a scenario with a serie of webservices.

5. Development of new features

Below are the stages of development for a new webservice:

Then you only need to test the new webservice. You can take as a model the tests contained in the test-unitaire directory.

If you create webservices that make use of user permissions that are not implemented, you must add those permissions in the file mci_access_api.php. For this start by creating a new permission constant at the beginning of the file. Then create a function that checks the user permission. You may wish to call the mciMantisRules if it is a simple check. Once the function is created, add a pointer to function in the mciCheckAccess (at the end of the file). Then you can use the new user permission in your webserivces.

A. Documentation generation with PhpDocumentor

For documentation generation, we need PhpDocumentor. Once downloaded and installed, from the home page, click on the Config tab. Select the Mantis Connect directory in the first field and click Change. Then from the dropdown list, choose the configuration file doc_ws.ini. Click Go. You create a new and updated documentation. On the other hand we must make one last manipulation because PhpDocumentor does not take into account our README file written in HTML. A shell script has been created to copy the README_FR.html in the documentation folder (shell command : $>sh doc_ws_sh).

B. External Links

Axidea : http://www.axidea.fr/

Mantis : http://www.mantisbt.org/
Mantis Connect : http://www.futureware.biz/mantisconnect/
NuSoap : http://dietrich.ganx4.com/nusoap/

PhpDocumentor : http://www.phpdoc.org/