By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,807 Members | 1,492 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,807 IT Pros & Developers. It's quick & easy.

XML-RPC authentication

P: n/a
My previous request for people experienced with CORBA found exactly
one, so from that I assume that XML-RPC is far more common in the PHP
world (about which I know little).

However, I tend to think that there are so insane drawbacks of XML-RPC
and the attempts of SOAP to rectify these merely creates more problems,
mainly due to lack of standards and interoperability.

What I'd like to be able to do (at minimum) is:
a) support 8-bit ASCII
b) support some sort of proper authentication, so not just any client
can get data from the server

XML-RPC does neither out of the box, but it shouldn't be too difficult
to graft these on. How have people here solved these problems in PHP
clients?

The server will be in Python, BTW.

-- robin

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I do not know about what kind of support PHP has for xml-rpc, and i could
not understand your question completely because you do not give any details
about your clients and the server, so you can ignore the rest of my post.

but i am just curious why you have decided to write your client, whatever it
is, in php but not in a language that has better libraries for what you are
looking for. i assume python has better support for xml-rpc, no?

konstantin
"escalation746" <es***********@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
My previous request for people experienced with CORBA found exactly
one, so from that I assume that XML-RPC is far more common in the PHP
world (about which I know little).

However, I tend to think that there are so insane drawbacks of XML-RPC
and the attempts of SOAP to rectify these merely creates more problems,
mainly due to lack of standards and interoperability.

What I'd like to be able to do (at minimum) is:
a) support 8-bit ASCII
b) support some sort of proper authentication, so not just any client
can get data from the server

XML-RPC does neither out of the box, but it shouldn't be too difficult
to graft these on. How have people here solved these problems in PHP
clients?

The server will be in Python, BTW.

-- robin

Jul 17 '05 #2

P: n/a
escalation746 <es***********@yahoo.com> wrote:
What I'd like to be able to do (at minimum) is:
a) support 8-bit ASCII
What is 8 bit ASCII?
b) support some sort of proper authentication, so not just any client
can get data from the server

XML-RPC does neither out of the box, but it shouldn't be too difficult
to graft these on.


Huh! XMLRPC should by the fact that it is XML support UTF8...

RPC.php:
....
$parser = xml_parser_create($XML_RPC_defencoding);
....

http://nl3.php.net/xml_parser_create :
The supported encodings are ISO-8859-1, UTF-8 and US-ASCII.

So it does support characters outside of 7bit ascii. But above code
sucks bigtime since all XML will be parsed as $XML_RPC_defencoding
(UTF-8): _BUG_

And to authenitcation: a sessionid. If request doesn't contain a (valid)
sessiondID, deny request. Client should get an ID first.
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.