Difference between Trim($HTTP_POST_VARS["sh"]) and scalarval()
"erasmus_joshi" <[email protected]>
| Newsgroups | gmane.text.xml.rpc.specification |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I have a - maybe - really stupid question but I am new to this topic
and don't find a way to solve it myself.
There is an existing xmlrpc client that works perfectly. I want to
adopt this client to Typo3 and the xmlrpc communications also works
really good. But I have on big problem with the following thing:
The communication is step by step. First I have to connect to the
server. This works perfect. This Server respones with an SessionID
with a length of 10 numbers. And that is the point. I have to use this
number as parameter in all methods.
The new and the old code are only unequal in the type calling the
methods. The working version is reading the variable by
$HTTP_POST_VARS["sh"]. I use the result of the response scalarval..
----snip----
if ($v = rpc_call($c, $f)) {
echo "Login () returns: ",$v->scalarval(),"<br>";
$sh = $v->scalarval();
$f= new xmlrpcmsg('sdb.Logout');
$f->addParam(new xmlrpcval(Trim($HTTP_POST_VARS["sh"]), $xmlrpcInt));
--- snap ----
The point I don't get is that in the method createPayload the ->echo
"Payload -> param -> serialize size = " . strlen($p->serialize()).
"<br>";<--
serialize value send as parameter via $HTTP_POST_VARS has a strlen
that is 6 shorter than the parameter send by scalarval.
Could this be a problem with encoding or has someone a idea what I am
doing wrong?
Sorry for the bad description.. but somehow I am really confused at
the moment and hope someone understood what I wanted to tell.
Thx in advance, Sascha
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/xml-rpc/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/