I am getting data from .asmx method using soap client. It is working fine on localhost, but not working on live server. This is my code.
//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;
}