Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SiteDate WS 401 UnAuthorized Error

Status
Not open for further replies.

jmnewbie

Programmer
Dec 17, 2003
5
US
I'm trying to use the SiteDate WS in SPP 2003. I'm an admin on the box and with the SPP server. I've been able to get other web services to work, but not this one. Keep getting Unathorized errors. I've set the credentials, but to no avail. Here's my code

palm_web_service.SiteData.SiteData sd = new palm_web_service.SiteData.SiteData();
sd.Credentials = System.Net.CredentialCache.DefaultCredentials;

palm_web_service.SiteData._sList[] lists;
sd.GetListCollection(out lists);

foreach (palm_web_service.SiteData._sList list in lists)
Debug.WriteLine(list.Title.ToString());
 
me too. i noticed that my http POST message does NOT contain a soap xml message! i'm using C# and the WebService wizard in VisualStudio. i wonder if this is a bug in the WebService wizard?
 
oops. after more careful investigation, i realized my http POST does include the soap xml. i'm still getting 401, tho :(

Lists GetListCollection works fine, tho. ???
 
i've discovered that to run the SiteData.GetListCollection method requires one fo the rights in the default SharePoint Administrator group.

for my app, i'm gonna use the GetListCollection from the Lists web service. that can be executed by a user who's only in the default Contributor group.

has anone seen a list of the rights needed to run each method of each SharePoint web service?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top