4.1  Webservice : create_topic

This webservice enables you to remotely create a new topic on the forum.

Here is a script example based on the topic creation webservice. This is done in PHP

require("nusoap/nusoap.php");

$sel = new soapclient("http://forumdev.MyDiscussionsnet/webservices/wservice.php");

$param = array(
    'user' => 'LoginAdministrateur',
    'pwd' => 'motdepasseAdministrateur',
    'author' => 'auteurdusujet',
    'idforum' => 1,
    'idcat' => 1,
    'idsubcat' => 0,
    'title' => 'title of the article which will become the title of the topic',
    'text' => 'text of the first message of the new topic.'
);
$results = $sel->call('create_topic', $param);

If everything goes right, the topic should be created after the webservice has been executed. If the creation process was successful, the webservice will return a table containing 2 parameters.


4 Webservices4.2 Add Answer Webservice