1

我正在使用肥皂客户端从 .asmx 方法获取数据。它在本地主机上运行良好,但在实时服务器上运行不正常。这是我的代码。

//turn off WSDP caching if not in a production environment
$ini = ini_set("soap.wsdl_cache_enabled","1");
xdebug_disable();
try {
    //instantiate the SOAP client
    $client = new SoapClient("http://ip_address/appName/common/TaskTrackingService.asmx?wsdl");
} catch (Exception $e) {
    exit("Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ip_address/appName/common/TaskTrackingService.asmx?wsdl'");
}

//checking if object is created
if ($client) {
    //updating user in timings 
    //getting data from GetAllEmployeeIntimesByDay method from timesheet 
    $params->month = date('m');
    $params->year = date('Y');
    $params->day = date('d',strtotime('yesterday'));
    $result = $client->GetAllEmployeeIntimesByDay($params)->GetAllEmployeeIntimesByDayResult;
}
4

0 回答 0