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!

Sharepoint Webservices

Status
Not open for further replies.

masterfranc

Programmer
Nov 5, 2004
1
CA
Hi,
I'm trying to retrieve some data contained in our Sharepoint portal server site (ex: listname, listcollection ...).
I'm using SPS Webservices trought an asp.net project.
The problem is that I get an 401 HTTP UNAUTHORIZED for every webservice called in my project.
Here here the the two solutions that I've tryed to solve the problem but it doesn't work...

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button.Click

Dim serviceLists As New SPS_Lists.Lists

solution 1 serviceLists.Credentials = System.Net.CredentialCache.DefaultCredentials
OR
solution 2 'Dim uriLists As New Uri(" 'Dim crdLists As New CredentialCache
'Dim nwcAdmin As New NetworkCredential("*****", "*****", "*****")
'crdLists.Add(uriLists, "Digest", nwcAdmin)
'serviceLists.Credentials = crdLists.GetCredential(uriLists, "Digest")

'Dim listName As String = "{EDE39F18-1340-4125-9864-38041EE88813}"
'Dim viewName As String
'Dim query As System.Xml.XmlNode
'Dim viewFields As System.Xml.XmlNode
'Dim queryOptions As System.Xml.XmlNode

'Dim responseNode As System.Xml.XmlNode
'Dim itemNode As System.Xml.XmlNode
'Dim rowLimit As String

'responseNode = serviceLists.GetListItems(listName, viewName, query, viewFields, rowLimit, queryOptions)

' For Each itemNode In responseNode
' Label1.Text = Label1.Text + itemNode.InnerXml
'Next

We've also tryed to change the IIS authentification setting but there is nothing to do....HTTP 401 still there!!!!!
Please, I someone have a solution....
Thanx a lot!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top