Commit e48a45d78c9e9e9e3b81748c150cee8adcb043f7

Authored by Elena.Budnik
1 parent b8194303

WebServices folder

php/classes/WSClientInterface.php renamed to php/WebServices/Client/WSClientInterface.php
php/classes/WSClientREST.php renamed to php/WebServices/Client/WSClientREST.php
php/classes/WSClientSOAP.php renamed to php/WebServices/Client/WSClientSOAP.php
php/classes/WSUserMgr.php renamed to php/WebServices/WSUserMgr.php
php/classes/WebServer.php renamed to php/WebServices/WebServer.php
... ... @@ -678,7 +678,8 @@ class WebServer
678 678 $resultFilePrefix .= "_".$this->userID;
679 679  
680 680 $dom = new DomDocument("1.0");
681   - $dom->load(plotsXml);
  681 + if (!@$dom->load(WSConfigClass::getXslDir()."AmdaPlots.xml"))
  682 + $this->throwError("systemError", "Cannot load predefined plot definition"); ;
682 683  
683 684 $missionTag = $dom->getElementById($mission);
684 685 $params = $missionTag->getElementsByTagName('param');
... ...
public/WebServices/XML/AmdaPlots.xml renamed to php/WebServices/xml/AmdaPlots.xml
php/XML/xml2vot.xsl renamed to php/WebServices/xml/xml2vot.xsl
php/testWebServer.php
1 1 <?php
2 2  
3   -require_once("classes/WSClientSOAP.php");
4   -require_once("classes/WSClientREST.php");
  3 +require_once("WebServices/WSClientSOAP.php");
  4 +require_once("WebServices/WSClientREST.php");
5 5  
6 6 function runSuiteTests($client)
7 7 {
... ... @@ -150,7 +150,7 @@ function runSuiteTests($client)
150 150 }
151 151 }
152 152  
153   -$clientSOAP = new WSClientSOAP("http://localhost/NEWAMDA-BENJAMIN/public/wsdl/Methods_AMDA.wsdl");
  153 +$clientSOAP = new WSClientSOAP("http://apus.irap.omp.eu/NEWAMDA/public/wsdl/Methods_AMDA.wsdl");
154 154  
155 155 echo "==> Suite tests for SOAP client".PHP_EOL;
156 156 runSuiteTests($clientSOAP);
... ...