src/ET_Client.php
function CreateWSDL($wsdlLoc) 
	{
		try{

			$getNewWSDL = true;
			
			$remoteTS = $this->GetLastModifiedDate($wsdlLoc);
			if (file_exists($this->xmlLoc)){
				$localTS = filemtime($this->xmlLoc);
				if ($remoteTS <= $localTS) 
				{
					$getNewWSDL = false;
				}
			}
			if ($getNewWSDL){
				$newWSDL = file_get_contents($wsdlLoc);
				file_put_contents($this->xmlLoc, $newWSDL);
			}	
		}
		catch (Exception $e) {
			throw new Exception('Unable to store local copy of WSDL file:'.$e->getMessage()."\n");
		}
	}
function CreateWSDL($wsdlLoc) 
	{
		try{

			$getNewWSDL = true;
			
			$remoteTS = $this->GetLastModifiedDate($wsdlLoc);
			if (file_exists($this->xmlLoc)){
				$localTS = filemtime($this->xmlLoc);
				if ($remoteTS <= $localTS) 
				{
					$getNewWSDL = false;
				}
			}
			if ($getNewWSDL){
				$newWSDL = file_get_contents($wsdlLoc);
				file_put_contents($this->xmlLoc, $newWSDL);
			}	
		}
		catch (Exception $e) {
			throw new Exception('Unable to store local copy of WSDL file:'.$e->getMessage()."\n");
		}
	}
function CreateWSDL ( $ wsdlLoc ) { try { $ getNewWSDL = true ; $ remoteTS = $ this -> GetLastModifiedDate ( $ wsdlLoc ) ; if ( file_exists ( $ this -> xmlLoc ) ) { $ localTS = filemtime ( $ this -> xmlLoc ) ; if ( $ remoteTS <= $ localTS ) { $ getNewWSDL = false ; } } if ( $ getNewWSDL ) { $ newWSDL = file_get_contents ( $ wsdlLoc ) ; file_put_contents ( $ this -> xmlLoc , $ newWSDL ) ; } } catch ( Exception $ e ) { throw new Exception ( 'Unable to store local copy of WSDL file:' . $ e -> getMessage ( ) . "\n" ) ; } }
Create the WSDL file at specified location.
@param  string 		location or path of the WSDL file to be created.
@return void
Create the WSDL file at specified location .