Saturday, 15 September 2012

php - Soap client not working on live server -



php - Soap client not working on live server -

i getting info .asmx method using soap client. working fine on localhost, not working on live server. code.

//turn off wsdp caching if not in production environment $ini = ini_set("soap.wsdl_cache_enabled","1"); xdebug_disable(); seek { //instantiate soap client $client = new soapclient("http://ip_address/appname/common/tasktrackingservice.asmx?wsdl"); } grab (exception $e) { exit("fatal error: soap-error: parsing wsdl: couldn't load 'http://ip_address/appname/common/tasktrackingservice.asmx?wsdl'"); } //checking if object created if ($client) { //updating user in timings //getting info getallemployeeintimesbyday method timesheet $params->month = date('m'); $params->year = date('y'); $params->day = date('d',strtotime('yesterday')); $result = $client->getallemployeeintimesbyday($params)->getallemployeeintimesbydayresult; }

php json web-services soap-client

No comments:

Post a Comment