[Zope] Accepting XML requests

Peter Bengtsson mail@peterbe.com
Tue, 10 Dec 2002 16:35:24 +0000


I have set up a URL with a SMS-sending company.
Basically, we set up so that
http://ourhost:port/Folder/SMS/Receive
should get the XML when someone sends an SMS to a particular number.

How do I in Zope, or rather, in this External Method accept the XML?
Once I get the XML-Schema in as a string I'll know what to do with it, but 
I'm not there yet.

[NB: Invoking the URL manually in the browser works and even though it's 
just very basic debugging, it returns something without errors]
If I try to standalone manually send an XML request using httplib as I 
think they'll send it to us I get this error in response:



   <strong>Error Type: ResponseError</strong><br>
   <strong>Error Value: <xmlrpclib.ResponseError instance at 
0x92b7ba4></strong><br>

Traceback (innermost last):
   File 
/local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 
150, in publish_module
   File 
/local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 
114, in publish
   File /local/home/peterbe/Zope-2.5.1-src/lib/python/Zope/__init__.py, 
line 159, in zpublisher_exception_hook
     (Object: Zope)
   File 
/local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 
63, in publish
   File 
/local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/HTTPRequest.py, 
line 357, in processInputs
   File /local/home/peterbe/Zope-2.5.1-src/lib/python/ZPublisher/xmlrpc.py, 
line 47, in parse_input
   File /local/home/peterbe/Zope-2.5.1-src/lib/python/xmlrpclib.py, line 
532, in loads
   File /local/home/peterbe/Zope-2.5.1-src/lib/python/xmlrpclib.py, line 
369, in close
ResponseError: (see above)



Why xmlrpclib?
Basically, how do I get the XML-Schema in as a string to work with from the 
XML request?


Peter