[Zope] Re: Sending XML straight down to a zope
Tres Seaver
tseaver at palladion.com
Thu Oct 12 16:59:44 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
than POST.
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.
- --
===================================================================
Tres Seaver +1 202-558-7113 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFLqzA+gerLs4ltQ4RAs5QAJ9O4YHNOS9jAqIgD7Mv+4tdRbj35ACdE2Zk
f6XAABi4VRlZWq4OSDCCuoo=
=NxlO
-----END PGP SIGNATURE-----
More information about the Zope
mailing list