Windows authentication in SharePoint Web Services

kuzmar
kuzmar used Ask the Experts™
on
There is a SharePoint Foundation 2010 environment on the server. The server is using windows authentication.

There are many web services there. One e.g.: http://server/_vti_bin/Webs.asmx

However... I would like to call those web services from other site/client. How would I be able to call the web service and authenticate too.

The following call results in 401 UNAUTHORIZED response:

<?xml version="1.0" encoding="utf-8"?>
<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/">
  <soap:Body>
    <GetWeb xmlns="http://schemas.microsoft.com/sharepoint/soap/">
      <webUrl>http://server/testsite/default.aspx</webUrl>
    </GetWeb>
  </soap:Body>
</soap:Envelope>

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011
Commented:
Invoke a WebService that needs Windows Authentication
http://blogs.artinsoft.net/mrojas/archive/2006/12/01/1273.aspx

Authentication Error when accessing Sharepoint list via web service
http://stackoverflow.com/questions/317879/authentication-error-when-accessing-sharepoint-list-via-web-service

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial