View Single Post
  #5 (permalink)  
Old 01-18-2010, 02:19 AM
jummo jummo is offline
Special Member
 
Posts: 113
Default

The example is for admin SOAP requests. For the non-admin SOAP requests you have to edit the zimbra.rb file.

In method send_soap and send_soap2
Code:
    url = 'https://' + host + ':7071/service/admin/soap/'
to
Code:
    url = 'https://' + host + '/service/soap/'
In mehtod self.authenticate change
Code:
      {   
        'xmlns' => 'urn:zimbraAdmin',
      },  
      [   
        element('name', name),
        element('password', password),
      ]
to
Code:
          {   
            'xmlns' => 'urn:zimbraAccount',
          },  
          [   
            element('account', name, {'by'=>"name"}),
            element('password', password),
          ]
And in the method CreateContactRequest
Code:
          {
            'xmlns' => 'urn:zimbraAdmin',
          },
to (I think it's zimbraMail, look at soap.txt in the src)
Code:
          {
            'xmlns' => 'urn:zimbraMail',
          },
Reply With Quote