Hi Folks, I'm interested in serving SOAP requests through Django. I've taken a look at the pages below, but I'm not sure what the current state of development is, as I couldn't get the example in 552 working.
http://code.djangoproject.com/ticket/552 http://code.djangoproject.com/ticket/115 I had to change some code in the soap.py as it was pre-magic-removal, but it's still not working for me. The changes I made were to change "from django.utils.httpwrappers import HttpResponseServerError, HttpResponse" to "from django.http import HttpResponseServerError, HttpResponse". I then added this to my urls.py: urlpatterns += patterns('greenleaftech.jobmonitor.soapviews', (r'^jobmonitor/rpc/$', 'f2'), ) And in the soapviews.py I put: from django.contrib.soap import SimpleSOAPView soap = SimpleSOAPView() def f2(request): return 'f2' soap.registerFunction(f2) The error message I get is: Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "/usr/lib/python2.3/site-packages/django/core/handlers/modpython.py", line 157, in handler return ModPythonHandler()(req) File "/usr/lib/python2.3/site-packages/django/core/handlers/modpython.py", line 133, in __call__ response = middleware_method(request, response) File "/usr/lib/python2.3/site-packages/django/contrib/sessions/middleware.py", line 74, in process_response patch_vary_headers(response, ('Cookie',)) File "/usr/lib/python2.3/site-packages/django/utils/cache.py", line 104, in patch_vary_headers if response.has_header('Vary'): AttributeError: 'str' object has no attribute 'has_header' Any help appreciated. Thanks, Tom --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---