|
|
|
date: Fri, 28 Dec 2007 06:38:00 -0800,
group: microsoft.public.exchange.development
back
Re: WebDav & Distribution List
Thanks
but to write DL completely to Exchange - do we need href of each contact in
DL?
-sumeet
"Henning Krause [MVP - Exchange]" wrote:
> Hello,
>
> distribution lists do not work this way.
>
> With Exchange 2003, the easiest way is to use an OWA command (see
> http://www.infinitec.de/articles/exchange/exchangedistlist.aspx). This won't
> work for Exchange 2007, but Exchange 2007 has WebServices for this.
>
> Kind regards,
> Henning Krause
>
> "steve040876" wrote in message
> news:1192220345.052354.161020@k35g2000prh.googlegroups.com...
> > I'm reading all contacts from my contacts folder via WebDab and it
> > works. Now when i found a DL, i want to enumerate all contact
> > contained in it but i always get "Bad request" error ...
> >
> > Code snippet:
> > ......
> > MSXML::IXMLHttpRequestPtr pXMLHttpReq=NULL;
> > hr=pXMLHttpReq.CreateInstance("Msxml2.XMLHTTP");
> >
> > sUrl="http://mail.mysite,com/exchange/usermailbox";
> > vUser="username";
> > vPassoword="pwd";
> > vAsync=false;
> > pXMLHttpReq->open("SEARCH", sUrl, vAsync,vUser, vPassword);
> >
> > //The request string... for clearity i did not escape backslash... in
> > real code the are \"
> > sRequest="
> > <?xml version="1.0"?><D:searchrequest xmlns:M="http://
> > schemas.microsoft.com/mapi/" xmlns:D = "DAV:" ><D:sql>SELECT
> > "urn:schemas:contacts:cn", "urn:schemas:contacts:members",
> > "DAV:displayname" FROM "http://mail.mysite,com/exchange/usermailbox/
> > Contatti/PROVONA%20LISTONA.EML" WHERE "DAV:ishidden" = false AND
> > "DAV:isfolder" = false AND "DAV:contentclass" = 'urn:content-
> > classes:group'</D:sql></D:searchrequest>"
> >
> > pXMLHttpReq->send(sRequest);
> >
> >
> >
> > I get "Bad request error"
> >
>
>
date: Fri, 28 Dec 2007 06:38:00 -0800
author: sumeetpk
Re: WebDav & Distribution List
i was able to create a DL in 2k7 using PROPPATCH method.
but how do we add the contact in the distribution list?
-sumeet
"sumeetpk" wrote:
>
> Thanks
>
> but to write DL completely to Exchange - do we need href of each contact in
> DL?
>
> -sumeet
>
> "Henning Krause [MVP - Exchange]" wrote:
>
> > Hello,
> >
> > distribution lists do not work this way.
> >
> > With Exchange 2003, the easiest way is to use an OWA command (see
> > http://www.infinitec.de/articles/exchange/exchangedistlist.aspx). This won't
> > work for Exchange 2007, but Exchange 2007 has WebServices for this.
> >
> > Kind regards,
> > Henning Krause
> >
> > "steve040876" wrote in message
> > news:1192220345.052354.161020@k35g2000prh.googlegroups.com...
> > > I'm reading all contacts from my contacts folder via WebDab and it
> > > works. Now when i found a DL, i want to enumerate all contact
> > > contained in it but i always get "Bad request" error ...
> > >
> > > Code snippet:
> > > ......
> > > MSXML::IXMLHttpRequestPtr pXMLHttpReq=NULL;
> > > hr=pXMLHttpReq.CreateInstance("Msxml2.XMLHTTP");
> > >
> > > sUrl="http://mail.mysite,com/exchange/usermailbox";
> > > vUser="username";
> > > vPassoword="pwd";
> > > vAsync=false;
> > > pXMLHttpReq->open("SEARCH", sUrl, vAsync,vUser, vPassword);
> > >
> > > //The request string... for clearity i did not escape backslash... in
> > > real code the are \"
> > > sRequest="
> > > <?xml version="1.0"?><D:searchrequest xmlns:M="http://
> > > schemas.microsoft.com/mapi/" xmlns:D = "DAV:" ><D:sql>SELECT
> > > "urn:schemas:contacts:cn", "urn:schemas:contacts:members",
> > > "DAV:displayname" FROM "http://mail.mysite,com/exchange/usermailbox/
> > > Contatti/PROVONA%20LISTONA.EML" WHERE "DAV:ishidden" = false AND
> > > "DAV:isfolder" = false AND "DAV:contentclass" = 'urn:content-
> > > classes:group'</D:sql></D:searchrequest>"
> > >
> > > pXMLHttpReq->send(sRequest);
> > >
> > >
> > >
> > > I get "Bad request error"
> > >
> >
> >
date: Tue, 1 Jan 2008 23:22:00 -0800
author: sumeetpk
|
|