View Single Post
  #3 (permalink)  
Old 12-19-2006, 01:47 PM
dkarp dkarp is offline
Zimbra Employee
 
Posts: 1,434
Default Not JSON by default

Quote:
Originally Posted by seeker View Post
Zimbra API always responses in JSON. I need to process the response in my Java app (not JavaScript).
Zimbra by default responds with the same format your request is in. So if your resuest is SOAP 1.2, Zimbra responds in SOAP 1.2. If your request is JSON, Zimbra sends back JSON.

You can override this (and the Web client does) by adding a <format> element to the <context> element in the SOAP header. But if you send XML and leave off the special <format> tag, you'll get XML back.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote