Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Sat, 17 Feb 2007 05:56:10 -0800,    group: microsoft.public.exchange.development        back       


Syncronize Exchange with SQL and vice versa   
Hi all,
I need to develop an application/service that does 2 things:

1.Syncronize a calendar in an exchange 2003 public folder to an SQL database.

2.Syncronize contacts from an sql database to exchange shared contacts.

I've been looking at the sdk and see there is a section on WebDAV 
replication. From what I can tell exchange can work out based on the 
"<R:collblob> field if anything has changed since the last time exchange was 
queried. After running the "Fetch an Update Manifest" example i get:

1 resources changed, deleted, or new...
Resource changetype: new
Resource URL: 
http://fridge/public/SourceCalendar/Testing%20new%20calendar-46633
6846.EML
Status: HTTP/1.1 200 OK
  Property name: a:displayname
  Property value: Testing new calendar-466336846.EML
  Property name: a:href
  Property value: 
http://fridge/public/SourceCalendar/Testing%20new%20calendar-4
66336846.EML
  Property name: e:importance
  Property value: 1
  Property name: d:resourcetag
  Property value: 
rt:6c635c592ab4f84397568646ea28221500000000b40d6c635c592ab4f84397568646ea28221500000000b612
Status: HTTP/1.1 404 Resource Not Found
  Property name: e:size

This is great because I can modify this to get the information i need to do 
an update to the sql database. The only issues i have is the collblog didn't 
update. So next time i make changes I will the next stuff and the stuff that 
changed last time. I'm just a little confused about how this works. Would 
someone be able to explain?

Btw, if you can think of a better way to do this please let me know.
-- 
**********************
Jacob
date: Sat, 17 Feb 2007 05:56:10 -0800   author:   Jacob am

Re: Syncronize Exchange with SQL and vice versa   
With the collblob you need to stored the value you receive after the initial 
query and then the next time you make a request submit this collblob value 
you stored you will then receive an updated collblob (if anything has 
changed) which you then need to store again and submit with the next query 
and so on. The thing to watch when your dealing with calendar items is that 
you always need to submit a fixed query eg you can cant keep changing the 
time window in your query because this will just keep generating a new 
collblob. The other problem is if you then submit a query of a calendar 
without a time window you'll find that recurring meeting wont expand.

cheers
Glen

"Jacob" <junk@hfws.net.nospam> wrote in message 
news:4DA02E53-532B-4BB6-9F99-572D1CDE756D@microsoft.com...
> Hi all,
> I need to develop an application/service that does 2 things:
>
> 1.Syncronize a calendar in an exchange 2003 public folder to an SQL 
> database.
>
> 2.Syncronize contacts from an sql database to exchange shared contacts.
>
> I've been looking at the sdk and see there is a section on WebDAV
> replication. From what I can tell exchange can work out based on the
> "<R:collblob> field if anything has changed since the last time exchange 
> was
> queried. After running the "Fetch an Update Manifest" example i get:
>
> 1 resources changed, deleted, or new...
> Resource changetype: new
> Resource URL:
> http://fridge/public/SourceCalendar/Testing%20new%20calendar-46633
> 6846.EML
> Status: HTTP/1.1 200 OK
>  Property name: a:displayname
>  Property value: Testing new calendar-466336846.EML
>  Property name: a:href
>  Property value:
> http://fridge/public/SourceCalendar/Testing%20new%20calendar-4
> 66336846.EML
>  Property name: e:importance
>  Property value: 1
>  Property name: d:resourcetag
>  Property value:
> rt:6c635c592ab4f84397568646ea28221500000000b40d6c635c592ab4f84397568646ea28221500000000b612
> Status: HTTP/1.1 404 Resource Not Found
>  Property name: e:size
>
> This is great because I can modify this to get the information i need to 
> do
> an update to the sql database. The only issues i have is the collblog 
> didn't
> update. So next time i make changes I will the next stuff and the stuff 
> that
> changed last time. I'm just a little confused about how this works. Would
> someone be able to explain?
>
> Btw, if you can think of a better way to do this please let me know.
> -- 
> **********************
> Jacob
>
date: Tue, 20 Feb 2007 08:20:38 +1100   author:   Glen Scales [MVP]

Re: Syncronize Exchange with SQL and vice versa   
Hello,

an additional constratint is, that the timeframe cannot exceed 732 day (two 
leapyears).

Best regards,
Henning Krause

"Glen Scales [MVP]"  wrote in message 
news:ekKNPvGVHHA.1432@TK2MSFTNGP02.phx.gbl...
> With the collblob you need to stored the value you receive after the 
> initial query and then the next time you make a request submit this 
> collblob value you stored you will then receive an updated collblob (if 
> anything has changed) which you then need to store again and submit with 
> the next query and so on. The thing to watch when your dealing with 
> calendar items is that you always need to submit a fixed query eg you can 
> cant keep changing the time window in your query because this will just 
> keep generating a new collblob. The other problem is if you then submit a 
> query of a calendar without a time window you'll find that recurring 
> meeting wont expand.
>
> cheers
> Glen
>
> "Jacob" <junk@hfws.net.nospam> wrote in message 
> news:4DA02E53-532B-4BB6-9F99-572D1CDE756D@microsoft.com...
>> Hi all,
>> I need to develop an application/service that does 2 things:
>>
>> 1.Syncronize a calendar in an exchange 2003 public folder to an SQL 
>> database.
>>
>> 2.Syncronize contacts from an sql database to exchange shared contacts.
>>
>> I've been looking at the sdk and see there is a section on WebDAV
>> replication. From what I can tell exchange can work out based on the
>> "<R:collblob> field if anything has changed since the last time exchange 
>> was
>> queried. After running the "Fetch an Update Manifest" example i get:
>>
>> 1 resources changed, deleted, or new...
>> Resource changetype: new
>> Resource URL:
>> http://fridge/public/SourceCalendar/Testing%20new%20calendar-46633
>> 6846.EML
>> Status: HTTP/1.1 200 OK
>>  Property name: a:displayname
>>  Property value: Testing new calendar-466336846.EML
>>  Property name: a:href
>>  Property value:
>> http://fridge/public/SourceCalendar/Testing%20new%20calendar-4
>> 66336846.EML
>>  Property name: e:importance
>>  Property value: 1
>>  Property name: d:resourcetag
>>  Property value:
>> rt:6c635c592ab4f84397568646ea28221500000000b40d6c635c592ab4f84397568646ea28221500000000b612
>> Status: HTTP/1.1 404 Resource Not Found
>>  Property name: e:size
>>
>> This is great because I can modify this to get the information i need to 
>> do
>> an update to the sql database. The only issues i have is the collblog 
>> didn't
>> update. So next time i make changes I will the next stuff and the stuff 
>> that
>> changed last time. I'm just a little confused about how this works. Would
>> someone be able to explain?
>>
>> Btw, if you can think of a better way to do this please let me know.
>> -- 
>> **********************
>> Jacob
>>
>
>
date: Tue, 20 Feb 2007 11:06:18 +0100   author:   Henning Krause [MVP - Exchange]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us