我找不到面向對象nusoap_client調用的語法:oop nusoap_client調用的語法是什麼?
如果我向服務器註冊類方法,那麼正確的語法是什麼?我知道服務器的代碼,但無法實現正確的客戶端。
我有這樣的服務器:
<?php
require_once "lib/nusoap.php";
require_once 'SampleData.php';
class SoapServer {
protected $server;
public function __construct() {
$this->server = new soap_server();
$server->register("SampleData.getSampleData");
$server->service($HTTP_RAW_POST_DATA);
}
}
?>
我如何把這個從我SoapClient的?
$result = $this->client->call("SampleData.getSampleData", array("category" => "sample"));
似乎不工作。