Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8773695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:22:06+00:00 2026-06-13T18:22:06+00:00

I have been trying to use the sharepoint web service (from webs.asmx) GetWebCollection to

  • 0

I have been trying to use the sharepoint web service (from webs.asmx) GetWebCollection to get a list of the sites available to a user. I have authenticated successfully with with sharepoint and if I hard code in the site path I can get files back. However, when I try and use GetWebCollection I am given a “403 Forbidden” error?

What is required to be down differently?

Alternatively, is there any way to tell what site the user is automatically assigned to?

I am connecting via SOAP (with ASIHTTPRequest) in Objective-C.

- (void)getUrl {

NSURL *url = [NSURL URLWithString:@"https://[server]/_vti_bin/Webs.asmx"];

requestGetSites = [ASIHTTPRequest requestWithURL:url];
[requestGetSites setDelegate:self];

NSString *soapMessage = @"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
                         "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"
                         "<soap:Body>\n"
                         "<GetWebCollection xmlns=\"http://schemas.microsoft.com/sharepoint/soap\" />\n"
                         "</soap:Body>\n"
                         "</soap:Envelope>";

[requestGetSites setUseCookiePersistence:NO];
[requestGetSites setUsername:@"username"];
[requestGetSites setPassword:@"password"];
[requestGetSites appendPostData:[soapMessage dataUsingEncoding:NSUTF8StringEncoding]];
[requestGetSites addRequestHeader:@"Content-Type" value:@"text/xml; charset=utf-8"];
[requestGetSites addRequestHeader:@"Host" value:@"[a server]"];
[requestGetSites addRequestHeader:@"SOAPAction" value:@"http://schemas.microsoft.com/sharepoint/soap/GetWebCollection"];

NSLog(@"Request headers are: %@", [[requestGetSites requestHeaders] description]);

[requestGetSites startSynchronous];

}

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T18:22:07+00:00Added an answer on June 13, 2026 at 6:22 pm

    I have open-sourced a SharePoint library that I use to connect to SharePoint available at http://github.com/woodnathan/SPConnector

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to use array_unique to remove duplicates from the search results
I have been trying to use the hibernate dialect for SQLite from http://code.google.com/p/hibernate-sqlite/ in
I have been trying to use the document.getElementByID to pull information from an HTML
I have been trying to use SharePoint:InputFormTextBox as Rich Text Editor in my SharePoint
I have been trying to use JQuery UI but cant seem to get any
I have been trying to use the new globbing feature in JDK7, starting from
I have been trying to use Fixed footer not displaying the bottom-most list item
I have been trying to use date_format , however as far as I know,
I have been trying to use routes.rb for creating a URL /similar-to-:product (where product
I have been trying to use/save the boolean value of a checkbox in other

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.