Hey Dave,

The following information is not based on my knowledge, but another fellow I
know who has some good experience with Sharepoint.

What's the value of serveruri.AbsoluteUri in the code sample?
It needs to be the address to the SPWeb being referencing concatenated with
"/_vti_bin/lists.asmx".

For example:
If you're querying lists for http://intranet/sales/west then the Url
property of the proxy needs to be
http://intranet/sales/west/_vti_bin/lists.asmx

Richard
-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Davy J
Sent: August 13, 2008 9:49 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] Problem with Sharepoint and Authentication.

Hi all,

 I'm completly bald after pulling my hair out for the past two days,
everything I've found on the web either doesn't apply or doesn't work
in my instance.


Problem:

I'm trying to call the dev sharepoint server
http://devserver/_vti_bin/lists.asmx

and I get this in reply.

System.Net.WebException occurred
  Message="The request failed with HTTP status 405: Method Not Allowed."
  Source="System.Web.Services"
  StackTrace:
       at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
Message
message, WebResponse response, Stream responseStream, Boolean
asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
       at Base.SPLists.Lists.GetListCollection()
       at Base.Sharepoint.SPGenericFile.AddListItem(String
documentReference)

Code:

  SpLists = new SPLists.Lists();
  SpLists.Url = serveruri.AbsoluteUri;
   SpLists = new SPLists();
 SpLists.Credentials = new
NetworkCredential("bobtheadmin","bobtheadminspassword","devserver");
 XmlNode lists = SpLists.GetListCollection(); //Error here.

The server name and the user / password have been changed.

I just can't figure out what's going on.

Stuff I've found / checked.
Authentication type is KERBOS and I can't change that, most say to
change to NTLM to fix the problem but that's not possible.

BobtheAdmin is a local machine admin of the devserver, and is admin of
the sharepoint , and has execute / read writes on the _vti_bin folder
under c:\program files.... etc.

The code was copied from another application that runs on the same
server, using the same network credentials.

Any ideas?

thanks

Dave.

--
Dave Jones
[EMAIL PROTECTED]

===================================
This list is hosted by DevelopMentorR  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to