SOAP API, how to manage out-of-office auto-reply, mail forwarding and local delivery

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
16623SimonZ
Posts: 4
Joined: Sat Sep 13, 2014 3:14 am

SOAP API, how to manage out-of-office auto-reply, mail forwarding and local delivery

Postby 16623SimonZ » Tue Jun 04, 2013 1:42 am

Hi
I have searched the Zimbra documentation, forums and SOAP API reference but I can't find any examples or commands to read, add, edit and delete (get, create, modify and delete?) settings for the following:

out-of-office auto-reply,

mail forwarding,

and local delivery.
There is mention here (http://www.zimbra.com/forums/developers/2161-soap-request-questions-accountmodifyrequest-setpasswordrequest.html) of how to use the ModifyAccount SOAP command with attribute zimbraMailForwardingAddress for mail forwarding but are there any complete examples of how to construct and process SOAP requests to read, add, edit and delete the above 3 settings?
I have to work with Zimbra Version 5.0.18
Many thanks in advance :)


Krishopper
Outstanding Member
Outstanding Member
Posts: 769
Joined: Fri Sep 12, 2014 10:23 pm

SOAP API, how to manage out-of-office auto-reply, mail forwarding and local delivery

Postby Krishopper » Tue Jun 04, 2013 6:44 pm

I'm mobile at the moment, so can't do the tests to give you the answer. But the fastest way to find out is to open up Chrome or Firefox and use the Developer Tools to view the raw network requests. Once that is enabled, make the change in your own account and view the request that the Web UI made to the server. Then copy that syntax into your code.
16623SimonZ
Posts: 4
Joined: Sat Sep 13, 2014 3:14 am

SOAP API, how to manage out-of-office auto-reply, mail forwarding and local delivery

Postby 16623SimonZ » Tue Jun 11, 2013 9:58 pm

Thank you Krishopper. Using Google Chrome's Developer Tools I was able to view all the XML requests sent by a web front end to the Zimbra SOAP API. This is a great way to see exactly what the XML schema, including all commands and parameters, should be to perform any action that a web front end does. This is extremely useful because the Zimbra documentation on the SOAP API does not give examples on how to do many key things, or even show what all the commands and settings should be.
If anyone else needs to do this:

- Open Google Chrome and open the built-in Developer Tools

- In Developer Tools, click on the tab at the top for 'Network'

- Click on the tab at the bottom for 'All', if you want to see all requests/responses between the front end and the server or click on the 'XHR' tab if you want to see only GET/POST requests using Ajax

- As you perform actions in the web front end you will see all data from the requests and responses including the formatted XML requests sent to the Zimbra SOAP API
9643fredcy
Posts: 7
Joined: Sat Sep 13, 2014 3:19 am

SOAP API, how to manage out-of-office auto-reply, mail forwarding and local delivery

Postby 9643fredcy » Wed Aug 27, 2014 9:18 am

Thanks, SimonZ, that's a handy tip.

Return to “Developers”

Who is online

Users browsing this forum: No registered users and 4 guests