1

SOAP クライアントを使用して .asmx メソッドからデータを取得しています。localhost では正常に動作していますが、ライブ サーバーでは動作していません。これは私のコードです。

//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