aboutsummaryrefslogtreecommitdiff
path: root/lib/elearning/clients/soap_webservice_client.php
blob: 9c392a8aaa12a1349445c32b9b8155a3dc476700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
# Lifter002: TODO
# Lifter007: TODO
# Lifter003: TODO
# Lifter010: TODO

require_once 'webservice_client.php';
require_once 'vendor/nusoap/nusoap.php';

class Soap_WebserviceClient extends WebserviceClient
{
    private $client;

    public function __construct($webservice_url)
    {
        $this->client = new soap_client($webservice_url);
        $this->client->response_timeout = 7600;
    }

    public function &call($method_name, &$args)
    {
        $result = $this->client->call($method_name, $args);
        return $result;
    }
}