Hi David
In your message of 2007/10/23, you say :
"Use the regular RPC API to get the update on each question. There is a
timestamp mechanism to know if a question has been changed. Look at
RPC get_timestamp() in the demexp book.
In short, a timestamp, an integer counter, is incremented each time a
question, tag, etc. is modified. You have the timestamp in the data
structure of each question, tag, etc. Moreover, you can use the
get_timestamp() RPC to get all the timestamps at once.
As an added bonus, on the XML-RPC proxy, you have two RPCs available:
* get_timestamp(), the same as the get_timestamp() ONC-RPC;
* get_timestamp_decoded(), returns the timestamp as arrays of
integers (instead of the compressed version of the get_timestamp()
RPC)."
So I guessed that it exists a get_timestamp() function available for each
question. But the demo-server answers that such funcion is not supported.
See the joined file for debbug.
Have I guessed wrong ?
Yours
Diogene
---SENDING---
POST /cgi-bin/demexp-xmlrpc-test HTTP/1.0
User-Agent: XML-RPC for PHP 2.2
Host: www.linux-france.org:80
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 205
<?xml version="1.0"?>
<methodCall>
<methodName>get_timestamp</methodName>
<params>
<param>
<value><int>715237893</int></value>
</param>
<param>
<value><int>38</int></value>
</param>
</params>
</methodCall>
---END---
---GOT---
HTTP/1.0 200 OK
Date: Sun, 02 Mar 2008 07:06:31 GMT
Content-Length: 315
Content-Type: text/xml
Server: Apache/1.3.33 (Unix) PHP/4.3.11 mod_perl/1.29
<?xml version='1.0'?>
<methodResponse>
<fault>
<value><struct>
<member>
<name>faultCode</name>
<value><int>1</int></value>
</member>
<member>
<name>faultString</name>
<value><string>exceptions.Exception:method "get_timestamp" is not supported</string></value>
</member>
</struct></value>
</fault>
</methodResponse>
---END---
HEADER: date: Sun, 02 Mar 2008 07:06:31 GMT
HEADER: content-length: 315
HEADER: content-type: text/xml
HEADER: server: Apache/1.3.33 (Unix) PHP/4.3.11 mod_perl/1.29
---PARSED---
xmlrpcval::__set_state(array(
'me' =>
array (
'struct' =>
array (
'faultCode' =>
xmlrpcval::__set_state(array(
'me' =>
array (
'int' => 1,
),
'mytype' => 1,
'_php_class' => NULL,
)),
'faultString' =>
xmlrpcval::__set_state(array(
'me' =>
array (
'string' => 'exceptions.Exception:method "get_timestamp" is not supported',
),
'mytype' => 1,
'_php_class' => NULL,
)),
),
),
'mytype' => 3,
'_php_class' => NULL,
))
---END---
_______________________________________________
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev