Ejemplo n.º 1
0
 $com_ret = $client->commitObj($token, $testfile, $odescr, $ftype);
 if ($com_ret->ret == $SUCCESS) {
     echo "commitObj is ok. ";
     echo "<br />";
     var_dump($com_ret);
 } else {
     echo "<b>commitObj is error. </b>";
     echo $com_ret->msg;
     echo "<br />";
     echo $com_ret->ret;
     echo "<br />";
 }
 echo "<br />";
 echo "<br />";
 echo "test queryAttribute interface...";
 $qatt_ret = $client->queryAttribute($token, $attribute, $testfile, $ftype);
 if ($qatt_ret->result->ret == $SUCCESS) {
     echo "queryAttribute is ok. ";
     var_dump($qatt_ret->attribute_value);
     echo "<br />";
 } else {
     echo "<b>queryAttribute is error. </b>";
     echo $qatt_ret->result->ret;
     echo "<br />";
     echo $qatt_ret->result->msg;
     echo "<br />";
 }
 echo "<br />";
 echo "<br />";
 echo "test QueryFile interface...";
 $qfile_ret = $client->QueryFile($token, $ftype, $testfile);