locked
Lists.asmx ... I have only ListsSoapClient RRS feed

  • Question

  • Hi,
    I had read a lot of tutorial on the net and I read that for the CRUD operation throught the web service I need a instance of Lists object.

    I had looking for it but I have only the ListsSoapClient object.

    Anyone knows why?

    Tnx

    Friday, May 21, 2010 10:36 AM

Answers

  • To add a reference to a Windows SharePoint Services Web service in Visual Studio

       1.In Solution Explorer , right-click References , and then click Add WebReference .
       2.In the Add Web Reference dialog box, for URL , type the absolute URL for the Web service in the following format: A path that includes the Web site for which the Web service will be available.

          http://MyServer/[sites/][MySite/][MySubsite/]_vti_bin/Web_Service.asmx

          If you are using methods in the Administration Web service, instead specify a path that goes to the administration port and that uses _vti_adm as the virtual directory, as follows:

          http:// MyServer:Port_Number/_vti_adm/Admin.asmx

       3.Type a Web reference name, and then click Add Reference .

    Web Service Guidelines(http://msdn.microsoft.com/en-us/library/ms458094%28office.12%29.aspx)
    Cogito, ergo sum.
    Monday, May 24, 2010 1:43 AM

All replies

  • the ListsSoapClient is just the WCF proxy that gets generated by default when you create a reference in a .NET 3.x project.  If you want to build an ASP.NET Web Reference, go into the advanced tab and you will see an option to create that.

    If you are in Silverlight, WCF is your only option.

    In any event you can do the same things with the WCF proxy as you can with a classic ASP.NET reference, only you are granted more control over the connection.  Instantiate a new object of Lists SoapClient (ListsSoapClient client = new ListsSoapClient();) and you can call UpdateListItems etc. just the same: (client.UpdateListItems(...))

    Hope it helps...


    Jonathan Mast
    blog
    twitter: @jonathanpmast
    Friday, May 21, 2010 1:03 PM
  • To add a reference to a Windows SharePoint Services Web service in Visual Studio

       1.In Solution Explorer , right-click References , and then click Add WebReference .
       2.In the Add Web Reference dialog box, for URL , type the absolute URL for the Web service in the following format: A path that includes the Web site for which the Web service will be available.

          http://MyServer/[sites/][MySite/][MySubsite/]_vti_bin/Web_Service.asmx

          If you are using methods in the Administration Web service, instead specify a path that goes to the administration port and that uses _vti_adm as the virtual directory, as follows:

          http:// MyServer:Port_Number/_vti_adm/Admin.asmx

       3.Type a Web reference name, and then click Add Reference .

    Web Service Guidelines(http://msdn.microsoft.com/en-us/library/ms458094%28office.12%29.aspx)
    Cogito, ergo sum.
    Monday, May 24, 2010 1:43 AM