I am trying to get information using the tvDataDelivery.wsdl delivery method using soap. It seems the PDF's on
http://tmsdatadirect.com/docs/tv/
Requre a username and password. I tried my Schedules Direct account information but that failed.
What I am trying to accomplish is getting the program data into a MySql database using PHP and SOAP. I grabbed this code that grabs data but I want to know how to parse it. I used my Schedules Direct Username and PAssword and the client returned data. Now I need to parse and use it. I currently use XMLTX on a Windows system with a MS Sql Database and want to port it to an Apache Server.
Steve
<?php
$username='username';
$password='password';
$wsdl_url='http://docs.tms.tribune.com/tech/tmsdatadirect/schedulesdirect/tvDataDelivery.wsdl';
$start=gmdate("Y-m-d\TH:i:s\Z",time()); //today
$stop =gmdate("Y-m-d\TH:i:s\Z",time()+3600*24); //tomorrow (now + 24hrs)
$client = new SoapClient($wsdl_url, array('exceptions' => 0,'user_agent' => "php/".$_SERVER[SCRIPT_NAME],
'login' => strtolower($username),
'password' => $password));
$data = $client->download($start,$stop);
print_r($data);
?>