[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Demexp-dev] Questions
From: |
Lyu Abe |
Subject: |
Re: [Demexp-dev] Questions |
Date: |
Wed, 17 Oct 2007 13:06:17 +0900 |
User-agent: |
Thunderbird 2.0.0.6 (Windows/20070728) |
Hi David,
You can look at function _contact_demexp_server() and other functions
that call it.
However, from what I've read Augustin is using the xmlrpc() standard
call from PHP and not the xmlrpc external module, so the API is
probably quite different.
I did look at the _contact_demexp_server(), but I still do not
understand why I cannot retrieve, for example, the max number of
questions. In the Drupal code, a simple
$ds_max_question_id = _contact_demexp_server('max_question_id', 0);
echo $ds_max_question_id . 'server max';
can retieve the max number of questions. My PHP code is quite similar:
$message->xmlrpcmsg('max_question_id', $cookie);
$max_Q_ret = $server->send($message);
print $max_Q_ret->value();
but the returned response from the server has no meaning (like
"379895601", or "415675044", or... I got a different value each time...
so I think I'm totally off, but do not understand what I'm doing wrong).
The XML response from the server is (for example),
<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value><int>415675044</int></value>
</param>
</params>
</methodResponse>
Note that at the beginning of the code, I login then at the end I log
out, and these operations seem to execute fine. For example if I login
using an invalid name, I get the XML response:
<?xml version='1.0'?>
<methodResponse>
<fault>
<value><struct>
<member>
<name>faultCode</name>
<value><int>410</int></value>
</member>
<member>
<name>faultString</name>
<value><string>rt_bad_login</string></value>
</member>
</struct></value>
</fault>
</methodResponse>
I'm stuck!! Help!! ;)
Lyu
- [Demexp-dev] Questions, Lyu ABE, 2007/10/13
- Re: [Demexp-dev] Questions, David MENTRE, 2007/10/14
- Re: [Demexp-dev] Questions, Lyu Abe, 2007/10/15
- Re: [Demexp-dev] Questions, David MENTRE, 2007/10/16
- Re: [Demexp-dev] Questions, David MENTRE, 2007/10/16
- Re: [Demexp-dev] Questions,
Lyu Abe <=
- Re: [Demexp-dev] Questions, David MENTRE, 2007/10/17
- Re: [Demexp-dev] Questions, David MENTRE, 2007/10/17
- Re: [Demexp-dev] Questions, Lyu Abe, 2007/10/17
- Re: [Demexp-dev] Questions, Lyu Abe, 2007/10/18
- Re: [Demexp-dev] Questions, David MENTRE, 2007/10/18
- Re: [Demexp-dev] Questions, Lyu Abe, 2007/10/18
- Re: [Demexp-dev] Questions, David MENTRE, 2007/10/18
- Re: [Demexp-dev] Questions, Lyu Abe, 2007/10/18
- Re: [Demexp-dev] Questions, David MENTRE, 2007/10/18
- Re: [Demexp-dev] Questions, Lyu Abe, 2007/10/20