/[volute]/trunk/projects/grid/vospace/php_endpoint/vospace_service.php
ViewVC logotype

Diff of /trunk/projects/grid/vospace/php_endpoint/vospace_service.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 733 by richard.p.wagner, Tue Aug 19 05:41:49 2008 UTC revision 734 by richard.p.wagner, Tue Aug 19 19:37:17 2008 UTC
# Line 2  Line 2 
2    
3  require_once('config.inc');  require_once('config.inc');
4    
 require_once(BACKEND.'properties.php');  
5  require_once(BACKEND.'node.php');  require_once(BACKEND.'node.php');
6    require_once(BACKEND.'vospace.php');
7    
8  class VOSpaceService {  class VOSpaceService {
9    
# Line 23  Line 23 
23    
24    function GetProperties(){    function GetProperties(){
25    
26      global $provided_properties;      $vospace = &new VOSpace();
27    
28      return array('accepts' => null,      $properties = $vospace->getProperties();
29                   'provides' => $provided_properties,      return $properties;
                  'contains' => null);  
30    }    }
31    
32    function CreateNode($message)    function CreateNode($message)
# Line 87  Line 86 
86      $data = array("response"=>array("token" => "foo", "limit" => 100, "detail" => "min", "nodes"=> array()));      $data = array("response"=>array("token" => "foo", "limit" => 100, "detail" => "min", "nodes"=> array()));
87      return $data;      return $data;
88    }    }
89    
90    function FindNodes($message)    function FindNodes($message)
91    {    {
92    
# Line 123  Line 122 
122      $view = $node->getView();      $view = $node->getView();
123      $protocols = $node->getProtocols();      $protocols = $node->getProtocols();
124    
125      $response = array('view' => $view,      // transfer element, with at least a view and protocol element
126                        'protocol' => $protocols);      $response = array('transfer'=>
127                          array('view' => $view,
128                                'protocol' => $protocols));
129    
130      return $response;      return $response;
131    }    }

Legend:
Removed from v.733  
changed lines
  Added in v.734

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26