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: Tue, 23 Oct 2007 07:03:14 -0700,    group: microsoft.public.exchange.development        back       


Different EntryIDs for webdav search   
Hello Friends,

Here is the simple search for entry-id from Exchange Server through
Webdav.


 public void SearchForTask(string userName,string resourceURL)

           {

            string taskContentClass = "urn:content-classes:task";
            string url = "http://" + _exchangeServerName + "/
exchange/" + userName;

            string xmlString = "<?xml version='1.0' ?>"
                + "<a:searchrequest xmlns:a='DAV:'
                      xmlns:f='urn:uuid:c2f41010-65b3-11d1-
a29f-00aa00c14882/'><a:sql>"

                + "select http://schemas.microsoft.com/mapi/proptag/x0fff0102
from
                      http://dev-exg/exchange/eiuser2/Tasks"

                + "where \"DAV:contentclass\"= " + "'" +
taskContentClass + "'"

                 + " </a:sql></a:searchrequest>";

          }

Iam able to get the entryId but the problem is that it returns
different values(base64 encoded string) from Exchange everytime. And
only some of the parts are different.

For eg:

AAAAAGGtZPz+lIFChf+5n
+PZEREHAIiRsBQNqyFKjCNx9IN4EFoAAAXrmdIAAIiRsBQNqyFKjCNx9IN4EFoAAALM1pcAAA==
AAAAAGGtZPz+lIFChf+5n
+PZEREHAIiRsBQNqyFKjCNx9IN4EFoAAAXrsQoAAIiRsBQNqyFKjCNx9IN4EFoAAALM1pgAAA==
AAAAAGGtZPz+lIFChf+5n
+PZEREHAIiRsBQNqyFKjCNx9IN4EFoAAAXrsSkAAIiRsBQNqyFKjCNx9IN4EFoAAALM1pgAAA==
AAAAAGGtZPz+lIFChf+5n
+PZEREHAIiRsBQNqyFKjCNx9IN4EFoAAAXr0fIAAIiRsBQNqyFKjCNx9IN4EFoAAAXrvGYAAA==

We got the above 4 values every time we ran the above search.They are
all different.

Could anyone please suggest the reasons for the above behaviour?

Regards,
Paras
date: Tue, 23 Oct 2007 07:03:14 -0700   author:   unknown

Re: Different EntryIDs for webdav search   
Hi paras,

> Here is the simple search for entry-id from Exchange Server through
> Webdav.
<.../>
>                + "select 
> http://schemas.microsoft.com/mapi/proptag/x0fff0102
<.../>

> Iam able to get the entryId but the problem is that it returns
> different values(base64 encoded string) from Exchange everytime. And
> only some of the parts are different.

I suspect that you are seeing session specific short term entry ids.
Instead of x0fff0102 try to retrieve this property which is defined for the 
Exchange MAPI provider: x66700102

--
SvenC
date: Tue, 23 Oct 2007 16:36:51 +0200   author:   SvenC am

Re: Different EntryIDs for webdav search   
Hi Sven,
 Thanks for the reply.
As mentioned by you, I checked the entry id type and it is long term
entry id (abFlags are all 0).
I tried querying x66700102 from webDAV, but exchange is returning an
empty value.
What is this property exactly.

Any further help will be highly appreciated.

Regards,
Paras
date: Wed, 24 Oct 2007 02:23:25 -0700   author:   unknown

Re: Different EntryIDs for webdav search   
Hi Paras,

> As mentioned by you, I checked the entry id type and it is long term
> entry id (abFlags are all 0).

Hmm, that is really strange. Are you absolutely sure that you do get the 
same item for every search request?
There is no code running which "changes" tasks by reading its properties, 
deleting the current task and recreate a new one based on the saved 
properties?

> I tried querying x66700102 from webDAV, but exchange is returning an
> empty value.
> What is this property exactly.

You can find some info here: http://www.dimastr.com/redemption/mapitable.htm
Search for PR_LONGTERM_ENTRYID_FROM_TABLE.

> Any further help will be highly appreciated.

I don't have much personal experience with WebDAV. I hope someone more 
knowledgable helps out.

--
SvenC
date: Wed, 24 Oct 2007 12:07:51 +0200   author:   SvenC am

Google
 
Web ureader.com


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