News | Mail Archive | OS Software Downloads Ad Info ::
Subject: Databases | Java | Linux | Open Source | XML | Data | Tech


Contribute:
· News/Reviews/Release
· Submit a New App!

Misc:
· My Account
· Editorial Feedback
· Logout


Login
 Username
 Password
 Remember me


 Become a Member!
 Login Problems?

News via email
Enter your Email



Recently Updated Mail Archives
php_mysql_jobs
clojure
svn-commits-list
GoogleAppEngine
entstrees
fop-users-xmlgraphics.apache.org
chromium-bugs
oracle9i_pl-sql
fedora-test-list
Android-Developers
webobjects-dev
chromium-reviews
ubuntu-sounder
java-jobs-north-america
tiddlywiki
tech_jobs
chromium-extensions
java-dev.lucene.apache.org
java-dev
hot-recruiters
Popular Mail Lists: windows linux solaris osx ubuntu fedora enterprise crm ruby python java xml perl php cvs subversion version contol db
database mysql postgresql mobile telephony voip apple apache
all
sitemap (mail)




Posted Oct 14, 2005

Why I ditched XMLRPC in favor of Pyro

      

I ran into a situation recently where I needed to pass "None" as a value to some code which runs under the SimpleXMLRPCServer in the Python standard library. I immediately got a Fault something like this:

<Fault 1: 'exceptions.TypeError:cannot marshal None unless allow_none is enabled'>

I tried turning on allow_none by putting something like this in my XMLRPC client:

xmlrpclib.ServerProxy("http://localhost:8000", allow_none=1)

I never got this quite working, but by googling around, it seems that the XMLRPC spec doesn't have support for a None datatype. I anticipate that I won't need "None" much, but when you need it, you need it. I figured I could kludge something, but why?

O'Reilly Blogs
Login/Become a Member! | 0 Comments
Threshold
Comments are owned by the poster. We aren't responsible for their content.


Advertise With Us! | Comments are property of their posters.
Copyrighted (c) 2009, but we're happy to let you use what you wish with attribution. OSDir.com
All logos and trademarks are the property of their respective owners.
OSDir is an inevitable website. super tiny logo | Contact | Privacy Policy

Page created in 0.321846 seconds.