A while back I already reported on this behaviour, but so far I have
not managed to get it all working. The problem? TGWebservices returns
the SOAP payload with the content-type set to "text/html".

ZSI does not like that.

I tried to manually set the content-type without any luck like so:


class WSEvents(WebServicesRoot):
   @wsexpose([str])
   def get_event_types(self):
      cherrypy.response.headers['Content-Type'] = 'text/xml'
      res = EventType.select( order_by=EventType.c.label )
      return ["%s:%s" % (_.event_type_id, _.label) for _ in res]



Any pointers?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to