class Employee
{
public $Id;
public $Name;
public $Email;
public $Salary;
![]()
function __construct($id, $name, $email, $salary)
{
$this->Id = $id;
$this->Name = $name;
$this->Email = $email;
$this->Salary= $salary;
}
}
class EmployeeService extends MSAjaxService
{
function GetEmployee()
{
return new Employee(12345, "Dflying Chen", "Dflying@some.com", 1000);
}
}
$theService = new EmployeeService();
$theService->ProcessRequest();
![]()
| 第1页: 下载安装方法与编写Service文件 | 第2页: 编写调用页面 |
| 第3页: 示例程序界面 |