I am using MOSS 2007 SP 2. I enabled anonymous access on the site collection for lists only. When I try to call GetListItems on the lists web service on a list that does not have anonymous enabled using the list GUID in the request I get back 0 items. If I used the list name instead I get back list items. If I disable anonymous access for the site collection I also get back list items. Any idea what's going on?
Reply 1
Wrap your request inside authentication.asmx.
Use LoginResult method and based on the results of this function assign the CookieContainer of authentication web service to the Lists web service.
No comments:
Post a Comment