Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Web Services / version 2

  Asked By: Nishita    Date: Aug 19    Category: Sharepoint    Views: 444

I'm trying to use the web services of Sharepoint version 2 that are
available in the SDK.
I want to work with Lists...
The web service on this case is:


I started trying to use the GetList() method. My server name is
neptuno and I have a web at http://neptuno/C1/DocumentLibrary with a
document Library called "Document Library"(very original :-) ) My
code is this:

neptuno2.Lists serv = new neptuno2.Lists();
SPSite site = SPControl.GetContextSite(Context);
SPWeb web = site.AllWebs["C1/DocumentLibrary/"];
SPList l = web.Lists["Document Library"];

System.Xml.XmlNode n = serv.GetList(l.ID.ToString());
catch(Exception ex)
{Response.Write("with credentials " + ex.Message);}

But I get a soap error:

Microsoft.SharePoint.SoapServer.SoapServerException: Exception of
type Microsoft.SharePoint.SoapServer.SoapServerException was thrown.

Any idea???



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Web Services / version 2 Or get search suggestion and latest updates.