[Zope] Problem with POST and text/xml
dev101 at magma.ca
Sat Jul 11 09:22:08 EDT 2009
>----- Original Message -----
>From: "Andreas Jung" <lists at zopyx.com>
>To: "Jonathan (dev101)" <dev101 at magma.ca>
>Cc: <zope at zope.org>
>Sent: Friday, July 10, 2009 4:30 PM
>Subject: Re: [Zope] Problem with POST and text/xml
> On 10.07.09 21:24, Jonathan (dev101) wrote:
>> I need to support a third party web service (which is not within my
>> that wants to send xml data to my zope server (Zope 2.9.2 running on
>> When Zope receives a POST request with a Content-Type of text/xml it
>> that it is an xmlrpc call (which it is not - it is just passing xml data
>> within the POST request).
>> Is there a way to get Zope to turn off this "xmlrpc assumption" so that
>> zope external method can process the xml data that is being passed?
Thanks for the link!
There were some differences between my Zope 2.9.2 installation and the patch
1) There was no interfaces.py file in the ZPublisher source directory (so I
created a new one)
2) There were some differences in the HTTPRequest.py file, but it was still
possible to make the changes indicated in the patch instructions.
I restarted Zope via the ZMI, and ran a test (which generated a 500 response
error). I noticed that there were no pyc/pyo files for interfaces.py and
HTTPRequest.py, so I created them manually using py_compile.
I restarted Zope and ran another test (using wget to simulate a POST request
containing xml data) and got a 503 response:
HTTP/1.0 503 Service Unavailable
Server: Zope/(Zope 2.9.2-, python 2.4.2, linux2) ZServer/1.1
Date: Sat, 11 Jul 2009 14:04:08 GMT
Bobo-Exception-Value: See the server error log for details
Content-Type: text/html; charset=iso-8859-15
There were no entries in Z2.log or event.log.
Other than manually creating pyc/pyo files and re-starting zope, is there
anything else I need to do to implement the changes to interfaces.py and
HTTPRequest.py? If not, any ideas as to what could be causing this error or
how I could go about debugging it?
More information about the Zope