Skip to content

Instantly share code, notes, and snippets.

@raytiley
Created September 13, 2010 16:05
Show Gist options
  • Save raytiley/577519 to your computer and use it in GitHub Desktop.
Save raytiley/577519 to your computer and use it in GitHub Desktop.
<?php
$cablecast_client = new SoapClient("http://demo.trms.com/CablecastWS/CablecastWS.asmx?WSDL");
$showInfo = $cablecast_client->GetShowInformation(array("ShowID" => 21978));
$showInfo = $showInfo->GetShowInformationResult;
$params = array("ShowID" => $showInfo->ShowID,
"LocalID" => $showInfo->LocalID,
"Title" => $showInfo->InternalTitle,
"CGTitle" => $showInfo->Title,
"ProjectID" => 18,
"CGExempt" => $showInfo->CGExempt,
"ProducerID" => $showInfo->ProducerID,
"CategoryID" => $showInfo->CategoryID,
"EventDate" => $showInfo->EventDate,
"Comments" => $showInfo->Comments,
"CustomFields" => array(),
"OnDemand" => $showInfo->OnDemand,
"OnDemandStatus" => $showInfo->OnDemandStatus,
"BugText" => $showInfo->BugText,
"CrawlText" => $showInfo->CrawlText,
"CrawlLengthInSeconds" => $showInfo->CrawlLengthInSeconds,
"username" => "admin",
"password" => "demotrms",
);
var_dump($params);
try {
$result = $cablecast_client->UpdateShowRecord($params);
var_dump($result);
}
catch(SoapFault $fault) {
echo $fault->faultstring;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment