[Zope] Re: Sending XML straight down to a zope
tseaver at palladion.com
Thu Oct 12 16:59:44 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Dieter Maurer wrote:
> Chris Withers wrote at 2006-10-12 08:35 +0100:
>> Peter Bengtsson wrote:
>>> xml_content = open('validxmlfile.xml').read()
>>> http = httplib.HTTP("localhost", 8080)
>>> http.putrequest("POST", "/uploadExpenseXML")
>> That's not really a valid transaction...
> Why not?
> The real problem is that Zope wrongfully assumes that each
> "POST" with content type "text/xml" is an XML-RPC request.
> That's wrong at least since XML is more widely used on the browser
> side (e.g. XForms).
I think XForms uses PUT to save the model back to the server, rather
WRT my proposed earlier solution: Adding a custom server type does not
necessarily require deploying a hacked version of ZPublisher: it is
possible to register new server types in Zope2 products (e.g., the
original ClockServer product).
Tres Seaver +1 202-558-7113 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v126.96.36.199 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Zope