Hi, I'm trying to use WebDAV replication as described here: http://msdn2.microsoft.com/en-us/library/ms877289.aspx but, I'm not able to execute any of example. I'm sending XML like this, and receive Error 400: <?xml version="1.0"?> <D:searchrequest xmlns:D="DAV:" xmlns:R="http://schemas.microsoft.com/repl/"> <R:repl> <R:collblob/> </R:repl> <D:sql>SELECT 'http://schemas.microsoft.com/repl/resourcetag' FROM SCOPE ('SHALLOW TRAVERSAL OF "http://exchange:8082/exchange/usermailbox/Tasks/"') </D:sql> </D:searchrequest> I allways get error 400. Is there any setup needed to enable this feature ? Regards
Your XML look okay except for the <D:sql>SELECT 'http://schemas.microsoft.com/repl/resourcetag' FROM You need to use double quotes around the property name eg "http://schemas.microsoft.com/repl/resourcetag" using single quotes will generate 400 errors. Cheers Glen "Marcin Krzyzanowski" wrote in message news:OpOK21mNIHA.4880@TK2MSFTNGP03.phx.gbl... > Hi, > > I'm trying to use WebDAV replication as described here: > http://msdn2.microsoft.com/en-us/library/ms877289.aspx but, I'm not able > to execute any of example. > > I'm sending XML like this, and receive Error 400: > > <?xml version="1.0"?> > <D:searchrequest xmlns:D="DAV:" > xmlns:R="http://schemas.microsoft.com/repl/"> > <R:repl> > <R:collblob/> > </R:repl> > <D:sql>SELECT 'http://schemas.microsoft.com/repl/resourcetag' FROM SCOPE > ('SHALLOW TRAVERSAL OF > "http://exchange:8082/exchange/usermailbox/Tasks/"') </D:sql> > </D:searchrequest> > > > I allways get error 400. Is there any setup needed to enable this feature > ? > > > Regards >
That was it. Thanks Glen. Glen Scales [MVP] pisze: > Your XML look okay except for the <D:sql>SELECT > 'http://schemas.microsoft.com/repl/resourcetag' FROM > > You need to use double quotes around the property name eg > "http://schemas.microsoft.com/repl/resourcetag" using single quotes will > generate 400 errors. > > Cheers > Glen > > "Marcin Krzyzanowski" wrote in message > news:OpOK21mNIHA.4880@TK2MSFTNGP03.phx.gbl... >> Hi, >> >> I'm trying to use WebDAV replication as described here: >> http://msdn2.microsoft.com/en-us/library/ms877289.aspx but, I'm not able >> to execute any of example. >> >> I'm sending XML like this, and receive Error 400: >> >> <?xml version="1.0"?> >> <D:searchrequest xmlns:D="DAV:" >> xmlns:R="http://schemas.microsoft.com/repl/"> >> <R:repl> >> <R:collblob/> >> </R:repl> >> <D:sql>SELECT 'http://schemas.microsoft.com/repl/resourcetag' FROM SCOPE >> ('SHALLOW TRAVERSAL OF >> "http://exchange:8082/exchange/usermailbox/Tasks/"') </D:sql> >> </D:searchrequest> >> >> >> I allways get error 400. Is there any setup needed to enable this feature >> ? >> >> >> Regards >> > >
BTW, all examples show single quotes here. funny. Marcin Krzyzanowski pisze: > That was it. Thanks Glen. > > Glen Scales [MVP] pisze: >> Your XML look okay except for the <D:sql>SELECT >> 'http://schemas.microsoft.com/repl/resourcetag' FROM >> >> You need to use double quotes around the property name eg >> "http://schemas.microsoft.com/repl/resourcetag" using single quotes >> will generate 400 errors. >> >> Cheers >> Glen >> >> "Marcin Krzyzanowski" wrote in message >> news:OpOK21mNIHA.4880@TK2MSFTNGP03.phx.gbl... >>> Hi, >>> >>> I'm trying to use WebDAV replication as described here: >>> http://msdn2.microsoft.com/en-us/library/ms877289.aspx but, I'm not >>> able to execute any of example. >>> >>> I'm sending XML like this, and receive Error 400: >>> >>> <?xml version="1.0"?> >>> <D:searchrequest xmlns:D="DAV:" >>> xmlns:R="http://schemas.microsoft.com/repl/"> >>> <R:repl> >>> <R:collblob/> >>> </R:repl> >>> <D:sql>SELECT 'http://schemas.microsoft.com/repl/resourcetag' FROM >>> SCOPE ('SHALLOW TRAVERSAL OF >>> "http://exchange:8082/exchange/usermailbox/Tasks/"') </D:sql> >>> </D:searchrequest> >>> >>> >>> I allways get error 400. Is there any setup needed to enable this >>> feature ? >>> >>> >>> Regards >>> >> >>