Exemple #1
0
 /**
  * Checks and ensures that a static WSDL file exist and is in place
  *
  * @return  string  WSDL path
  *
  * @since   1.4
  */
 public function checkWSDL()
 {
     try {
         // Wet wsdl from webservice location
         $this->wsdlPath = RApiSoapHelper::getWebserviceFilePath($this->webservice->client, strtolower($this->webservice->webserviceName), $this->webservice->webserviceVersion, 'wsdl', $this->webservice->webservicePath);
         if (is_readable(JPATH_SITE . '/' . $this->wsdlPath)) {
             return $this->wsdlPath;
         }
     } catch (Exception $e) {
     }
     // WSDL file is not present, we are going to generate it on the fly
     $this->wsdl = RApiSoapHelper::generateWsdl($this->webservice->configuration, $this->wsdlPath);
     RApiSoapHelper::saveWsdlContentToPath($this->wsdl, JPATH_SITE . '/' . $this->wsdlPath);
     return $this->wsdlPath;
 }