diff --git a/.gitignore b/.gitignore index 43ece97..ae90f26 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ build/ scripts/DDServer.env log +src/DDSERVICES/SOAP/DDserverWeb_ini.php +src/DDSERVICES/SOAP/dd.wsdl diff --git a/CMakeLists.txt b/CMakeLists.txt index 61f6e05..920e37a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,21 @@ configure_file ( "${CMAKE_SOURCE_DIR}/scripts/DDServer.env" ) +set(DDSERVICE_URL $ENV{DDSERVICE_URL}) +set(DDRESPATH $ENV{DDRESPATH}) +set(DDBASEDATA $ENV{DDBASEDATA}) +set(DDBASEINFO $ENV{DDBASEINFO}) + +configure_file ( + "${CMAKE_SOURCE_DIR}/src/DDSERVICES/SOAP/DDserverWeb_ini.php.in" + "${CMAKE_SOURCE_DIR}/src/DDSERVICES/SOAP/DDserverWeb_ini.php" +) + +configure_file ( + "${CMAKE_SOURCE_DIR}/src/DDSERVICES/SOAP/dd.wsdl.in" + "${CMAKE_SOURCE_DIR}/src/DDSERVICES/SOAP/dd.wsdl" +) + MESSAGE( STATUS "Build DD_Server Project" ) add_subdirectory(src/SERVER) add_subdirectory(src/DECODERS/ascii2nc) diff --git a/compil.sh b/compil.sh index 950c542..bb933d2 100755 --- a/compil.sh +++ b/compil.sh @@ -1,9 +1,22 @@ #!/bin/sh -export NETCDF_ROOT="/opt/local" -export DDCLIENT_ROOT="/opt/local" +export INSTALL_DIR="/opt/local" +export DDSERVICE_URL="http://apus.irap.omp.eu/NEWAMDA/DDService" +export DDRESPATH="/home/budnik/DDBASE" +export DDBASEDATA="/home/budnik/DDBASE/DATA" +export DDBASEINFO="/home/budnik/DDBASE/INFO" + +echo "Install dir. : ${INSTALL_DIR}" +echo "DDService Url : ${DDSERVICE_URL}" +echo "DD.res path : ${DDRESPATH}" +echo "DDBASE DATA path : ${DDBASEDATA}" +echo "DDBASE INFO path : ${DDBASEINFO}" +read -p "Press any key to continue..." + +export NETCDF_ROOT=$INSTALL_DIR +export DDCLIENT_ROOT=$INSTALL_DIR cmake -E make_directory build -cmake -E chdir build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/local .. +cmake -E chdir build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} .. cmake --build build sudo make -C build install VERBOSE=1 diff --git a/scripts/DDServer.env.in b/scripts/DDServer.env.in index e6342d0..5b95e33 100644 --- a/scripts/DDServer.env.in +++ b/scripts/DDServer.env.in @@ -1,7 +1,7 @@ #!/bin/bash -DDBASE=/home/budnik/DDBASE/DATA -DDPATH=/home/budnik/DDBASE +DDBASE=@DDBASEDATA@ +DDPATH=@DDRESPATH@ DDLIB=@DDCLIENTLIB_DIR@/ DDBASEBIN=@CMAKE_INSTALL_PREFIX@/bin LD_LIBRARY_PATH=$DDLIB/:@NETCDFLIB_DIR@:@libcdf_LIBRARY_DIR@:@USRLIB_DIR@ diff --git a/src/DATA/MANAGER/DDBaseMgr.php b/src/DATA/MANAGER/DDBaseMgr.php index 5de7b5e..bb7dcbc 100644 --- a/src/DATA/MANAGER/DDBaseMgr.php +++ b/src/DATA/MANAGER/DDBaseMgr.php @@ -151,8 +151,8 @@ class DDBaseMgr if (!file_exists($this->info)) system("infoLocal2nc ".$this->info_xml." ".$this->info); if (!file_exists("clean")) { - copy(getenv("DDBASE")."/Cache.template", $this->cache); - $SED = "sed 's/NAME/".$this->brief."/g' ".getenv("DDBASE")."/Clean.template > clean"; + copy(getenv("DDBASEBIN")."/Cache.template", $this->cache); + $SED = "sed 's/NAME/".$this->brief."/g' ".getenv("DDBASEBIN")."/Clean.template > clean"; exec($SED); chmod("clean", 0755); } @@ -278,4 +278,4 @@ class DDBaseMgr } } ?> - \ No newline at end of file + diff --git a/src/DATA/MANAGER/mgr_ini.php b/src/DATA/MANAGER/mgr_ini.php deleted file mode 100644 index 326854c..0000000 --- a/src/DATA/MANAGER/mgr_ini.php +++ /dev/null @@ -1,59 +0,0 @@ -<?php - -/** -* @file mgr_ini.php -* @brief All necessary SETUP for DD Data Center Manager -* @version $Id: mgr_ini.php,v 1.1 2013/03/13 08:44:40 budnik Exp $ -*/ - -/* MAIN DEFINITIONS SHOULD BE MODIFIED!!!!!! */ - define("rootDir", "/home/budnik/AMDA-NG.core/DDBASE"); - define("DDLIBHOME","/opt/local"); - define ("DDLIB", DDLIBHOME."/lib"); - define('CEFLIB', '/opt/local/lib'); - define('CDFLIB', '/opt/local/lib'); - define('SYS_LIBS', '/lib:/usr/lib:/usr/local/lib'); - - - /* CDAWeb stuff */ - define ("wsdlCDAWEB", "https://cdaweb.sci.gsfc.nasa.gov/WS/jaxrpc?WSDL"); - define ("viewID" , "sp_phys"); - -/* THEMIS stuff */ - define ("ThemisDir", "/THEMIS_B1/themisdata/"); - -/* Compound Definitions: Nothing to modify */ - - define ("DDBASEBIN", DDLIBHOME."/bin"); - define ("DDBASE", rootDir."/DATA/"); - define ("DDsys", "DDsys.xml"); - - define ("INFO_DIR", rootDir."/INFO/"); - define ("DICTIONARY_DIR", INFO_DIR."Dictionary/"); - define ("XML_BASE_DIR",INFO_DIR."xsl/"); - - define ("USERS_INFO","AMDA_Users_Info.xml"); - define ("USERS_GROUPS","AMDA_Users.xml"); - - putenv("LD_LIBRARY_PATH=".SYS_LIBS.":".DDLIB.":".CEFLIB.":".CDFLIB); - $old_include_path = set_include_path("./:".DDLIB.":".DDBASEBIN); - - define("STDERR", fopen("php://stderr","w")); - define("log_", fopen("log","w")); - - define("treeLATMOS", "http://impex.latmos.ipsl.fr/tree.xml"); - define("treeSINP", "http://smdc.sinp.msu.ru/impex/SINP_tree.xml"); // official: http://dec1.sinp.msu.ru/~lucymu/paraboloid/SINP_tree.xml - define("treeFMI_HYB", "http://impex-fp7.fmi.fi/ws/Tree_FMI_HYB.xml"); - define("treeFMI_GUMICS", "http://impex-fp7.fmi.fi/ws/Tree_FMI_GUMICS.xml"); - define("treeLESIA", "http://maser.obspm.fr/IMPExWS/tree_Mag.xml"); - define("treeCCMC", "http://apus.irap.omp.eu/AMDA-IMPEX/public/trees/Tree_CCMC_chablon5.xml"); - - define('wsdl_LESIA', 'http://maser.obspm.fr/IMPExWS/Methods_LESIA-Mag.wsdl'); - - if (!function_exists('__autoload')) { - function __autoload($class_name) { - require_once $class_name . '.php'; - } - } - -?> diff --git a/src/DATA/TEMPLATES/Clean.template b/src/DATA/TEMPLATES/Clean.template index cbe6a48..8db8dbf 100755 --- a/src/DATA/TEMPLATES/Clean.template +++ b/src/DATA/TEMPLATES/Clean.template @@ -5,4 +5,4 @@ # 1 Aug 2007, V.1.0 #------------------------------------------------------ rm NAME_[0-9]*.nc -cp -a $DDBASE/Cache.template ./NAME_cache.nc +cp -a $DDBASEBIN/Cache.template ./NAME_cache.nc diff --git a/src/DDSERVICES/SOAP/DDserverWeb_ini.php b/src/DDSERVICES/SOAP/DDserverWeb_ini.php deleted file mode 100644 index cb97e6c..0000000 --- a/src/DDSERVICES/SOAP/DDserverWeb_ini.php +++ /dev/null @@ -1,40 +0,0 @@ -<?php -/** -* @file DDserverWeb_ini.php -* @version $Id: DDserverWeb_ini.php,v 1.4 2013/04/09 09:07:39 benjamin Exp $ -* @brief All necessary SETUP for DD WebServices -* -*/ - -/* MAIN DEFINITIONS SHOULD BE MODIFIED!!!!!! */ - - define("rootDir", "/home/budnik/DDBASE"); - define("rootAlias", "http://apus.irap.omp.eu/NEWAMDA/DDService"); - // define("DDLIBHOME","/home/budnik/AMDANEW/DDLIB"); - define("DDLIB", "/opt/local/lib/"); - - putenv("LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:".DDLIB); - -/* Compound Definitions: Nothing to modify */ - - define("baseDir", rootDir."/DATA/"); -// define("extBaseDir",rootDir."/INFO/"); -// define("extBaseXml", "Bases.xml"); - - define("webAlias", rootAlias."/DATA/"); - define("extWebAlias", rootAlias."/INFO/"); - define("DDBASEBIN", "/opt/local/bin"); - -// Errors - define("UNKNOWNBASEID","UNKNOWNBASEID"); - define("OUTOFTIME","OUTOFTIME"); - define("NODATASET","NODATASET"); - define("NOEXTERNALBASES","NOEXTERNALBASES"); - define("NOEXTERNALDATA","NOEXTERNALDATA"); - define("NOLOCALDATA","NOLOCALDATA"); - define("NOUSERGROUPSSPECIFIED","NOUSERGROUPSSPECIFIED"); - -// A private key use to check if a request comes from a trust client - define("PRIVATEKEY","!%p856Dc"); - -?> diff --git a/src/DDSERVICES/SOAP/DDserverWeb_ini.php.in b/src/DDSERVICES/SOAP/DDserverWeb_ini.php.in new file mode 100644 index 0000000..53e831c --- /dev/null +++ b/src/DDSERVICES/SOAP/DDserverWeb_ini.php.in @@ -0,0 +1,39 @@ +<?php +/** +* @file DDserverWeb_ini.php +* @version $Id: DDserverWeb_ini.php,v 1.4 2013/04/09 09:07:39 benjamin Exp $ +* @brief All necessary SETUP for DD WebServices +* +*/ + +/* MAIN DEFINITIONS SHOULD BE MODIFIED!!!!!! */ + + define("rootAlias", "@DDSERVICE_URL@"); + // define("DDLIBHOME","/home/budnik/AMDANEW/DDLIB"); + define("DDLIB", "@DDCLIENTLIB_DIR@"); + + putenv("LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:".DDLIB); + +/* Compound Definitions: Nothing to modify */ + + define("baseDir", "@DDBASEDATA@"); + define("extBaseDir", "@DDBASEINFO@"); +// define("extBaseXml", "Bases.xml"); + + define("webAlias", rootAlias."/DATA/"); + define("extWebAlias", rootAlias."/INFO/"); + define("DDBASEBIN", "@CMAKE_INSTALL_PREFIX@/bin"); + +// Errors + define("UNKNOWNBASEID","UNKNOWNBASEID"); + define("OUTOFTIME","OUTOFTIME"); + define("NODATASET","NODATASET"); + define("NOEXTERNALBASES","NOEXTERNALBASES"); + define("NOEXTERNALDATA","NOEXTERNALDATA"); + define("NOLOCALDATA","NOLOCALDATA"); + define("NOUSERGROUPSSPECIFIED","NOUSERGROUPSSPECIFIED"); + +// A private key use to check if a request comes from a trust client + define("PRIVATEKEY","!%p856Dc"); + +?> diff --git a/src/DDSERVICES/SOAP/dd.wsdl b/src/DDSERVICES/SOAP/dd.wsdl deleted file mode 100644 index 116890f..0000000 --- a/src/DDSERVICES/SOAP/dd.wsdl +++ /dev/null @@ -1,372 +0,0 @@ -<?xml version ='1.0' encoding ='UTF-8' ?> -<definitions name='amda' - targetNamespace='http://amda.cdpp.irap.omp.eu' - xmlns:tns='http://amda.cdpp.irap.omp.eu' - xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' - xmlns:xsd='http://www.w3.org/2001/XMLSchema' - xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' - xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' - xmlns='http://schemas.xmlsoap.org/wsdl/'> - -<types> - <tns:complexType name="UserInfoData"> - <tns:sequence> - <tns:element minOccurs="1" maxOccurs="1" name="success" type="xsd:boolean"/> - <tns:element minOccurs="1" maxOccurs="1" name="login" type="xsd:string"/> - <tns:element minOccurs="1" maxOccurs="1" name="name" type="xsd:string"/> - <tns:element minOccurs="1" maxOccurs="1" name="first_name" type="xsd:string"/> - <tns:element minOccurs="1" maxOccurs="1" name="group" type="xsd:string"/> - <tns:element minOccurs="1" maxOccurs="1" name="email" type="xsd:string"/> - <tns:element minOccurs="1" maxOccurs="1" name="date" type="xsd:string"/> - <tns:element minOccurs="1" maxOccurs="1" name="news" type="xsd:string"/> - </tns:sequence> - </tns:complexType> - <tns:complexType name="TimeRestrictionData"> - <tns:sequence> - <tns:element minOccurs="1" maxOccurs="1" name="success" type="xsd:boolean"/> - <tns:element minOccurs="1" maxOccurs="1" name="days" type="xsd:string"/> - <tns:element minOccurs="1" maxOccurs="1" name="globalstop" type="xsd:string"/> - </tns:sequence> - </tns:complexType> - <tns:complexType name="ArrayOfStrings"> - <complexContent> - <restriction base="soap11-enc:Array"> - <attribute ref="soap11-enc:arrayType" wsdl:arrayType="string[]"/> - </restriction> - </complexContent> - </tns:complexType> -</types> - -<message name='isRemoteViAddedRequest'> - <part name='baseId' type='xsd:string'/> - <part name='viId' type='xsd:string'/> -</message> -<message name='isRemoteViAddedResponse'> - <part name='Result' type='xsd:boolean'/> -</message> -<message name='getVersionRequest'> - <part name='dataSet' type='xsd:string'/> -</message> -<message name='getVersionResponse'> - <part name='Result' type='xsd:string'/> -</message> -<message name='checkRemoteConnectionRequest'> - <part name='dataSet' type='xsd:string'/> -</message> -<message name='checkRemoteConnectionResponse'> - <part name='Result' type='xsd:boolean'/> -</message> -<message name='getStartStopRequest'> - <part name='dataSet' type='xsd:string'/> -</message> -<message name='getStartStopResponse'> - <part name='Result' type='xsd:string'/> -</message> -<message name='getInfoRequest'> - <part name='dataSet' type='xsd:string'/> - <part name='infoName' type='xsd:string'/> -</message> -<message name='getInfoResponse'> - <part name='Result' type='xsd:string'/> -</message> -<message name='getRemoteStartStopRequest'> - <part name='baseID' type='xsd:string'/> - <part name='dataSet' type='xsd:string'/> -</message> -<message name='getRemoteStartStopResponse'> - <part name='Result' type='xsd:string'/> -</message> -<message name='getDataUrlRequest'> - <part name='dataSet' type='xsd:string'/> - <part name="startDate" type="xsd:dateTime"/> - <part name="stopDate" type="xsd:dateTime"/> -</message> -<message name='getDataUrlResponse'> - <part name='Result' type='tns:ArrayOfStrings'/> -</message> -<message name='getAvailableExternalBasesRequest'> -</message> -<message name='getAvailableExternalBasesResponse'> - <part name='Result' type='xsd:string'/> -</message> -<message name='getUserGroupsRequest'> -</message> -<message name='getUserGroupsResponse'> - <part name='Result' type='xsd:string'/> -</message> -<message name='getUserAvailableLocalMissionsRequest'> - <part name='user' type='xsd:string'/> -</message> -<message name='getUserAvailableLocalMissionsResponse'> - <part name='Result' type='tns:ArrayOfStrings'/> -</message> -<message name='getUserAvailableExternalMissionsRequest'> - <part name='user' type='xsd:string'/> -</message> -<message name='getUserAvailableExternalMissionsResponse'> - <part name='Result' type='tns:ArrayOfStrings'/> -</message> -<message name='getAvailableMissionsRequest'> -</message> -<message name='getAvailableMissionsResponse'> - <part name='Result' type='xsd:string'/> -</message> -<message name='getAvailableExternalDataRequest'> - <part name='daseID' type='xsd:string'/> -</message> -<message name='getAvailableExternalDataResponse'> - <part name='Result' type='xsd:string'/> -</message> -<message name='getUserInfoRequest'> - <part name='login' type='xsd:string'/> - <part name='hash' type='xsd:string'/> -</message> -<message name='getUserInfoResponse'> - <part name='Result' type='tns:UserInfoData'/> -</message> -<message name='getTimeRestrictionRequest'> - <part name='dataSet' type='xsd:string'/> -</message> -<message name='getTimeRestrictionResponse'> - <part name='Result' type='tns:TimeRestrictionData'/> -</message> - -<portType name='AmdaPortType'> - <operation name='isRemoteViAdded'> - <input message='tns:isRemoteViAddedRequest'/> - <output message='tns:isRemoteViAddedResponse'/> - </operation> - <operation name='getVersion'> - <input message='tns:getVersionRequest'/> - <output message='tns:getVersionResponse'/> - </operation> - <operation name='checkRemoteConnection'> - <input message='tns:checkRemoteConnectionRequest'/> - <output message='tns:checkRemoteConnectionResponse'/> - </operation> - <operation name='getStartStop'> - <input message='tns:getStartStopRequest'/> - <output message='tns:getStartStopResponse'/> - </operation> - <operation name='getInfo'> - <input message='tns:getInfoRequest'/> - <output message='tns:getInfoResponse'/> - </operation> - <operation name='getRemoteStartStop'> - <input message='tns:getRemoteStartStopRequest'/> - <output message='tns:getRemoteStartStopResponse'/> - </operation> - <operation name='getDataUrl'> - <input message='tns:getDataUrlRequest'/> - <output message='tns:getDataUrlResponse'/> - </operation> - <operation name='getAvailableExternalBases'> - <input message='tns:getAvailableExternalBasesRequest'/> - <output message='tns:getAvailableExternalBasesResponse'/> - </operation> - <operation name='getUserGroups'> - <input message='tns:getUserGroupsRequest'/> - <output message='tns:getUserGroupsResponse'/> - </operation> - <operation name='getUserAvailableLocalMissions'> - <input message='tns:getUserAvailableLocalMissionsRequest'/> - <output message='tns:getUserAvailableLocalMissionsResponse'/> - </operation> - <operation name='getUserAvailableExternalMissions'> - <input message='tns:getUserAvailableExternalMissionsRequest'/> - <output message='tns:getUserAvailableExternalMissionsResponse'/> - </operation> - <operation name='getAvailableMissions'> - <input message='tns:getAvailableMissionsRequest'/> - <output message='tns:getAvailableMissionsResponse'/> - </operation> - <operation name='getAvailableExternalData'> - <input message='tns:getAvailableExternalDataRequest'/> - <output message='tns:getAvailableExternalDataResponse'/> - </operation> - <operation name='getUserInfo'> - <input message='tns:getUserInfoRequest'/> - <output message='tns:getUserInfoResponse'/> - </operation> - <operation name='getTimeRestriction'> - <input message='tns:getTimeRestrictionRequest'/> - <output message='tns:getTimeRestrictionResponse'/> - </operation> -</portType> - -<binding name='AmdaBinding' type='tns:AmdaPortType'> - <soap:binding style='rpc' - transport='http://schemas.xmlsoap.org/soap/http'/> - <operation name='isRemoteViAdded'> - <soap:operation soapAction='isRemoteViAdded'/> - <input> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </input> - <output> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </output> - </operation> - <operation name='getVersion'> - <soap:operation soapAction='getVersion'/> - <input> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </input> - <output> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </output> - </operation> - <operation name='checkRemoteConnection'> - <soap:operation soapAction='checkRemoteConnection'/> - <input> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </input> - <output> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </output> - </operation> - <operation name='getStartStop'> - <soap:operation soapAction='getStartStop'/> - <input> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </input> - <output> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </output> - </operation> - <operation name='getInfo'> - <soap:operation soapAction='getSInfo'/> - <input> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </input> - <output> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </output> - </operation> - <operation name='getRemoteStartStop'> - <soap:operation soapAction='getRemoteStartStop'/> - <input> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </input> - <output> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </output> - </operation> - <operation name='getDataUrl'> - <soap:operation soapAction='getDataUrl'/> - <input> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </input> - <output> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </output> - </operation> - <operation name='getAvailableExternalBases'> - <soap:operation soapAction='getAvailableExternalBases'/> - <input> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </input> - <output> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </output> - </operation> - <operation name='getAvailableExternalData'> - <soap:operation soapAction='getAvailableExternalData'/> - <input> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </input> - <output> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </output> - </operation> - <operation name='getUserGroups'> - <soap:operation soapAction='getUserGroups'/> - <input> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </input> - <output> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </output> - </operation> - <operation name='getUserAvailableLocalMissions'> - <soap:operation soapAction='getUserAvailableLocalMissions'/> - <input> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </input> - <output> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </output> - </operation> - <operation name='getUserAvailableExternalMissions'> - <soap:operation soapAction='getUserAvailableExternalMissions'/> - <input> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </input> - <output> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </output> - </operation> - <operation name='getAvailableMissions'> - <soap:operation soapAction='getAvailableMissions'/> - <input> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </input> - <output> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </output> - </operation> - <operation name='getUserInfo'> - <soap:operation soapAction='getUserInfo'/> - <input> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </input> - <output> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </output> - </operation> - <operation name='getTimeRestriction'> - <soap:operation soapAction='getTimeRestriction'/> - <input> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </input> - <output> - <soap:body use='encoded' - encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> - </output> - </operation> -</binding> - -<service name='AmdaService'> - <port name='AmdaPort' binding='AmdaBinding'> - <soap:address location='http://apus.irap.omp.eu/NEWAMDA/DDService/DDserverWeb.php'/> - </port> -</service> -</definitions> diff --git a/src/DDSERVICES/SOAP/dd.wsdl.in b/src/DDSERVICES/SOAP/dd.wsdl.in new file mode 100644 index 0000000..1c089c8 --- /dev/null +++ b/src/DDSERVICES/SOAP/dd.wsdl.in @@ -0,0 +1,372 @@ +<?xml version ='1.0' encoding ='UTF-8' ?> +<definitions name='amda' + targetNamespace='http://amda.cdpp.irap.omp.eu' + xmlns:tns='http://amda.cdpp.irap.omp.eu' + xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' + xmlns:xsd='http://www.w3.org/2001/XMLSchema' + xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' + xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' + xmlns='http://schemas.xmlsoap.org/wsdl/'> + +<types> + <tns:complexType name="UserInfoData"> + <tns:sequence> + <tns:element minOccurs="1" maxOccurs="1" name="success" type="xsd:boolean"/> + <tns:element minOccurs="1" maxOccurs="1" name="login" type="xsd:string"/> + <tns:element minOccurs="1" maxOccurs="1" name="name" type="xsd:string"/> + <tns:element minOccurs="1" maxOccurs="1" name="first_name" type="xsd:string"/> + <tns:element minOccurs="1" maxOccurs="1" name="group" type="xsd:string"/> + <tns:element minOccurs="1" maxOccurs="1" name="email" type="xsd:string"/> + <tns:element minOccurs="1" maxOccurs="1" name="date" type="xsd:string"/> + <tns:element minOccurs="1" maxOccurs="1" name="news" type="xsd:string"/> + </tns:sequence> + </tns:complexType> + <tns:complexType name="TimeRestrictionData"> + <tns:sequence> + <tns:element minOccurs="1" maxOccurs="1" name="success" type="xsd:boolean"/> + <tns:element minOccurs="1" maxOccurs="1" name="days" type="xsd:string"/> + <tns:element minOccurs="1" maxOccurs="1" name="globalstop" type="xsd:string"/> + </tns:sequence> + </tns:complexType> + <tns:complexType name="ArrayOfStrings"> + <complexContent> + <restriction base="soap11-enc:Array"> + <attribute ref="soap11-enc:arrayType" wsdl:arrayType="string[]"/> + </restriction> + </complexContent> + </tns:complexType> +</types> + +<message name='isRemoteViAddedRequest'> + <part name='baseId' type='xsd:string'/> + <part name='viId' type='xsd:string'/> +</message> +<message name='isRemoteViAddedResponse'> + <part name='Result' type='xsd:boolean'/> +</message> +<message name='getVersionRequest'> + <part name='dataSet' type='xsd:string'/> +</message> +<message name='getVersionResponse'> + <part name='Result' type='xsd:string'/> +</message> +<message name='checkRemoteConnectionRequest'> + <part name='dataSet' type='xsd:string'/> +</message> +<message name='checkRemoteConnectionResponse'> + <part name='Result' type='xsd:boolean'/> +</message> +<message name='getStartStopRequest'> + <part name='dataSet' type='xsd:string'/> +</message> +<message name='getStartStopResponse'> + <part name='Result' type='xsd:string'/> +</message> +<message name='getInfoRequest'> + <part name='dataSet' type='xsd:string'/> + <part name='infoName' type='xsd:string'/> +</message> +<message name='getInfoResponse'> + <part name='Result' type='xsd:string'/> +</message> +<message name='getRemoteStartStopRequest'> + <part name='baseID' type='xsd:string'/> + <part name='dataSet' type='xsd:string'/> +</message> +<message name='getRemoteStartStopResponse'> + <part name='Result' type='xsd:string'/> +</message> +<message name='getDataUrlRequest'> + <part name='dataSet' type='xsd:string'/> + <part name="startDate" type="xsd:dateTime"/> + <part name="stopDate" type="xsd:dateTime"/> +</message> +<message name='getDataUrlResponse'> + <part name='Result' type='tns:ArrayOfStrings'/> +</message> +<message name='getAvailableExternalBasesRequest'> +</message> +<message name='getAvailableExternalBasesResponse'> + <part name='Result' type='xsd:string'/> +</message> +<message name='getUserGroupsRequest'> +</message> +<message name='getUserGroupsResponse'> + <part name='Result' type='xsd:string'/> +</message> +<message name='getUserAvailableLocalMissionsRequest'> + <part name='user' type='xsd:string'/> +</message> +<message name='getUserAvailableLocalMissionsResponse'> + <part name='Result' type='tns:ArrayOfStrings'/> +</message> +<message name='getUserAvailableExternalMissionsRequest'> + <part name='user' type='xsd:string'/> +</message> +<message name='getUserAvailableExternalMissionsResponse'> + <part name='Result' type='tns:ArrayOfStrings'/> +</message> +<message name='getAvailableMissionsRequest'> +</message> +<message name='getAvailableMissionsResponse'> + <part name='Result' type='xsd:string'/> +</message> +<message name='getAvailableExternalDataRequest'> + <part name='daseID' type='xsd:string'/> +</message> +<message name='getAvailableExternalDataResponse'> + <part name='Result' type='xsd:string'/> +</message> +<message name='getUserInfoRequest'> + <part name='login' type='xsd:string'/> + <part name='hash' type='xsd:string'/> +</message> +<message name='getUserInfoResponse'> + <part name='Result' type='tns:UserInfoData'/> +</message> +<message name='getTimeRestrictionRequest'> + <part name='dataSet' type='xsd:string'/> +</message> +<message name='getTimeRestrictionResponse'> + <part name='Result' type='tns:TimeRestrictionData'/> +</message> + +<portType name='AmdaPortType'> + <operation name='isRemoteViAdded'> + <input message='tns:isRemoteViAddedRequest'/> + <output message='tns:isRemoteViAddedResponse'/> + </operation> + <operation name='getVersion'> + <input message='tns:getVersionRequest'/> + <output message='tns:getVersionResponse'/> + </operation> + <operation name='checkRemoteConnection'> + <input message='tns:checkRemoteConnectionRequest'/> + <output message='tns:checkRemoteConnectionResponse'/> + </operation> + <operation name='getStartStop'> + <input message='tns:getStartStopRequest'/> + <output message='tns:getStartStopResponse'/> + </operation> + <operation name='getInfo'> + <input message='tns:getInfoRequest'/> + <output message='tns:getInfoResponse'/> + </operation> + <operation name='getRemoteStartStop'> + <input message='tns:getRemoteStartStopRequest'/> + <output message='tns:getRemoteStartStopResponse'/> + </operation> + <operation name='getDataUrl'> + <input message='tns:getDataUrlRequest'/> + <output message='tns:getDataUrlResponse'/> + </operation> + <operation name='getAvailableExternalBases'> + <input message='tns:getAvailableExternalBasesRequest'/> + <output message='tns:getAvailableExternalBasesResponse'/> + </operation> + <operation name='getUserGroups'> + <input message='tns:getUserGroupsRequest'/> + <output message='tns:getUserGroupsResponse'/> + </operation> + <operation name='getUserAvailableLocalMissions'> + <input message='tns:getUserAvailableLocalMissionsRequest'/> + <output message='tns:getUserAvailableLocalMissionsResponse'/> + </operation> + <operation name='getUserAvailableExternalMissions'> + <input message='tns:getUserAvailableExternalMissionsRequest'/> + <output message='tns:getUserAvailableExternalMissionsResponse'/> + </operation> + <operation name='getAvailableMissions'> + <input message='tns:getAvailableMissionsRequest'/> + <output message='tns:getAvailableMissionsResponse'/> + </operation> + <operation name='getAvailableExternalData'> + <input message='tns:getAvailableExternalDataRequest'/> + <output message='tns:getAvailableExternalDataResponse'/> + </operation> + <operation name='getUserInfo'> + <input message='tns:getUserInfoRequest'/> + <output message='tns:getUserInfoResponse'/> + </operation> + <operation name='getTimeRestriction'> + <input message='tns:getTimeRestrictionRequest'/> + <output message='tns:getTimeRestrictionResponse'/> + </operation> +</portType> + +<binding name='AmdaBinding' type='tns:AmdaPortType'> + <soap:binding style='rpc' + transport='http://schemas.xmlsoap.org/soap/http'/> + <operation name='isRemoteViAdded'> + <soap:operation soapAction='isRemoteViAdded'/> + <input> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </input> + <output> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </output> + </operation> + <operation name='getVersion'> + <soap:operation soapAction='getVersion'/> + <input> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </input> + <output> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </output> + </operation> + <operation name='checkRemoteConnection'> + <soap:operation soapAction='checkRemoteConnection'/> + <input> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </input> + <output> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </output> + </operation> + <operation name='getStartStop'> + <soap:operation soapAction='getStartStop'/> + <input> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </input> + <output> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </output> + </operation> + <operation name='getInfo'> + <soap:operation soapAction='getSInfo'/> + <input> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </input> + <output> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </output> + </operation> + <operation name='getRemoteStartStop'> + <soap:operation soapAction='getRemoteStartStop'/> + <input> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </input> + <output> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </output> + </operation> + <operation name='getDataUrl'> + <soap:operation soapAction='getDataUrl'/> + <input> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </input> + <output> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </output> + </operation> + <operation name='getAvailableExternalBases'> + <soap:operation soapAction='getAvailableExternalBases'/> + <input> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </input> + <output> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </output> + </operation> + <operation name='getAvailableExternalData'> + <soap:operation soapAction='getAvailableExternalData'/> + <input> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </input> + <output> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </output> + </operation> + <operation name='getUserGroups'> + <soap:operation soapAction='getUserGroups'/> + <input> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </input> + <output> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </output> + </operation> + <operation name='getUserAvailableLocalMissions'> + <soap:operation soapAction='getUserAvailableLocalMissions'/> + <input> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </input> + <output> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </output> + </operation> + <operation name='getUserAvailableExternalMissions'> + <soap:operation soapAction='getUserAvailableExternalMissions'/> + <input> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </input> + <output> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </output> + </operation> + <operation name='getAvailableMissions'> + <soap:operation soapAction='getAvailableMissions'/> + <input> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </input> + <output> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </output> + </operation> + <operation name='getUserInfo'> + <soap:operation soapAction='getUserInfo'/> + <input> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </input> + <output> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </output> + </operation> + <operation name='getTimeRestriction'> + <soap:operation soapAction='getTimeRestriction'/> + <input> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </input> + <output> + <soap:body use='encoded' + encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> + </output> + </operation> +</binding> + +<service name='AmdaService'> + <port name='AmdaPort' binding='AmdaBinding'> + <soap:address location='@DDSERVICE_URL@/DDserverWeb.php'/> + </port> +</service> +</definitions> -- libgit2 0.21.2