View Single Post
  #3 (permalink)  
Old 01-14-2010, 05:33 AM
jummo jummo is offline
Special Member
 
Posts: 113
Default

To create a new distribution list, I use the attached ruby code. It based on code from Adding Appointments in Zimbra with Ruby and SOAP | Tyler Lesmann.

I use ruby 1.8.7 with soap4r 1.5.8 (gem)

The send_soap2 returns the response as a string, instead of a SOAP::Mapping:Object. The is due to a parse error of the soap4r xml parser. If the error occurs, I use REXML to parse the string myself.
Attached Files
File Type: zip ruby_zimbra_createdl.zip (1.3 KB, 27 views)

Last edited by jummo; 01-14-2010 at 05:35 AM.. Reason: insert URL
Reply With Quote