View Single Post
  #28 (permalink)  
Old 10-18-2007, 09:56 AM
hillman hillman is offline
Moderator
 
Posts: 75
Default

Are you using the right version of the admin tool? The Funambol version won't work - you have to download the sync4j Admin tool from their forge site.

If you're running that version and it still won't work, there are two values that need to be inserted into a table, and two xml files that must be set up.

I think there are three key values that it inserts. The definitions for ical and vcard, and a URL. I think the URL may go into a file though, rather than into the DB, because I can't find it in any of my tables. Here's the inserts for the first two:

INSERT INTO SYNC4J_SYNC_SOURCE VALUES('ical','zimbra-1.0/zimbra-1.0/zimbra-calendar-1.0/iCal.xml','iCal','zimbra-calendar-1.0')
INSERT INTO SYNC4J_SYNC_SOURCE VALUES('vcard','zimbra-1.0/zimbra-1.0/zimbra-contact-1.0/vCard.xml','vCard','zimbra-contact-1.0')

The xml files are: Sync4j/server/config/zimbra-1.0/zimbra-1.0/zimbra-calendar-1.0/iCal.xml
Code:
<?xml version="1.0" encoding="UTF-8"?> 
<java version="1.4.2_08" class="java.beans.XMLDecoder"> 
 <object class="sync4j.zimbra.engine.source.ZimbraCalendarSyncSource"> 
  <void property="encode"> 
   <boolean>false</boolean> 
  </void> 
  <void property="info"> 
   <object class="sync4j.framework.engine.source.SyncSourceInfo"> 
    <void property="supportedTypes"> 
     <array class="sync4j.framework.engine.source.ContentType" length="1"> 
      <void index="0"> 
       <object class="sync4j.framework.engine.source.ContentType"> 
        <void property="type"> 
         <string>text/x-vcalendar</string> 
        </void> 
        <void property="version"> 
         <string>1.0</string> 
        </void> 
       </object> 
      </void> 
     </array> 
    </void> 
   </object> 
  </void> 
  <void property="name"> 
   <string>iCal</string> 
  </void> 
  <void property="sourceURI"> 
   <string>ical</string> 
  </void> 
  <void property="type"> 
   <string>text/x-vcalendar</string> 
  </void> 
  <void property="zimbraUrl"> 
   <string>http://localhost/service/soap</string> 
  </void> 
 </object> 
</java>
And Sync4j/server/config/zimbra-1.0/zimbra-1.0/zimbra-contact-1.0/vCard.xml

Code:
<?xml version="1.0" encoding="UTF-8"?> 
<java version="1.4.2_08" class="java.beans.XMLDecoder"> 
 <object class="sync4j.zimbra.engine.source.ZimbraContactSyncSource"> 
  <void property="encode"> 
   <boolean>false</boolean> 
  </void> 
  <void property="info"> 
   <object class="sync4j.framework.engine.source.SyncSourceInfo"> 
    <void property="supportedTypes"> 
     <array class="sync4j.framework.engine.source.ContentType" length="2"> 
      <void index="0"> 
       <object class="sync4j.framework.engine.source.ContentType"> 
        <void property="type"> 
         <string>text/x-vcard</string> 
        </void> 
        <void property="version"> 
         <string>2.1</string> 
        </void> 
       </object> 
      </void> 
      <void index="1"> 
       <object class="sync4j.framework.engine.source.ContentType"> 
        <void property="type"> 
         <string>text/vcard</string> 
        </void> 
        <void property="version"> 
         <string>3.0</string> 
        </void> 
       </object> 
      </void> 
     </array> 
    </void> 
   </object> 
  </void> 
  <void property="name"> 
   <string>vCard</string> 
  </void> 
  <void property="sourceURI"> 
   <string>vcard</string> 
  </void> 
  <void property="type"> 
   <string>text/x-vcard</string> 
  </void> 
  <void property="zimbraUrl"> 
   <string>http://localhost/service/soap</string> 
  </void> 
 </object> 
</java>
I think that's it..

Last edited by hillman; 10-18-2007 at 08:19 PM..
Reply With Quote