.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

WSS 3 - How do I retrieve a single item from the Web Services?

Posted By:      Posted Date: September 23, 2010    Points: 0   Category :SharePoint

This is kinda two questions but they are related.

I have successfully used the GetListItems method of the Lists web service to get the items in a list.

Having looked around I can't find the expected easy way to:

1. Get a single list item by ID.  Do I just use GetListItems and use ID in the Query?

2. Get a document from a document library.  The answer might be the same: use GetListItems and use ID in the Query and somehow transfrom the document body into a stream?

Having used CRM web services I was expecting to see GetListItem(ID) and perhaps GetDocument(ID).

Can anyone point me at an example/tutorial or provide a sample.


View Complete Post

More Related Resource Links

Single Sign-On: A Developer's Introduction To Active Directory Federation Services


Use Active Directory Federation Services to allow other organizations to use your Web applications without the need for you to grant access explicitly.

Keith Brown

MSDN Magazine November 2006

How to store and retrieve multiple values in a single session variable .


I want to store employee name,designation and department in session variable and
retrieve in another page how to do this.

Item grouping and lot no on a single line

I would like to have the items group in a single row, that is not to complicated, however, each items has a lot number (serial) and in the column near the item number, I would like to see these serial number one after the other, on a single line, separated by a comma.à If a customer order a quantity of 2 of a specific item, the software I use create 2 lines because of the serial number attached to it, and on the quantity column it write 2 times 2 so my invoice is out of balance, this is because of the serial number. Example: Item                 Description          Quantity             Serial number 1234                 Item 1234                 2                   50012 1234                 Item 1234                 2           

Use of having multiple Services for single silverlight application

Hi My project have 4 modules, I have decided to use single service with multiple interface (1 interface for 1 module, i.e totally 4 interfaces) and multiple partial class ( 4 partial class). Partial classes use this interface. But I have another thought of using multiple service ( 4 services, i.e for each module one service class (.svc)). Please let me know, which approach is right? 

How to use single windows service to host multiple WCF Services instances (Each instance of WCF is i

How to use single windows service to host multiple WCF Services. I have a mutiple instance of same WCF service in different folder, each instance has unique service name and port. WCFService has reference to Reg-Free COM Reference, i have Native.WCFService.manifest in each folder. Ex: WCFService1 is in "C:\WCFService01\WCFService.dll, Native.OCWCFService.manifest, OCWCFService.dll.config WCFService2 is in "C:\WCFService02\WCFService.dll, Native.OCWCFService.manifest, OCWCFService.dll.config Now i need host above services from single Windows Service. I am trying to create AppDomain for each above WCFService Instance from Windows Service and then host. Its working if i register COM dll in the server using regsvr32, but when i un register COM dll, i am getting unable to load COM component .... This looks like AppDomain is not loading COM DLL and Manifest files. Its looks strange but we need it in this way because we have production and test environment in the same server. Everything works fine if create a seperate Windows Service for each WCFService Instance, but my manager wants single Windows Service :). Any help whould be really appreciated.  ravi kumar reddy

How to display TreeViewItems different ways based on the item type under a single node?

Hi, I am having trouble trying to display hiearchical data under each node in two different ways depending on the data.  I hope someone will be able to provide me some help on this since I am rather new to WPF development. Maybe I am going about this all wrong but for now, I am trying to create a customized TreeView to represent data similar to the xml I provided in the code below.  The <ItemsPresenter/> instances listed in the code are not exactly doing what I need.  I will probably need to filter the content that I list with each of the two <ItemsPresenter/> tags based on the type of each item although I have no idea if this is possible.   <Window x:Class="Wpf_treeview_testing.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <!-- * The "xmlData" describe roughly the type of data that I require visual representaion of. * Since I could not find a WPF Control that will present a Hierachical Data Template close to what we need, I am trying to setup a TreeView to represent this information by using a ControlTemplate for TreeViewItem. * The preferred result is to present different items types in

disable a single intem in dropdownlist or stop the ddl change event for a single item


hello guys,

I am trying something apart of my boundries, is there any way to disable a single intem in dropdownlist or stop the ddl change event for a single item.

any feadback would be appriciable.

Thanks and Regards

Inderjeet Singh Khalsa

How to delete list item by its url using web services?


How guys,

I need to delete an SPListItem from remote MOSS site. The problem is that I don't know its id, only url.

Any ideas?

Expose data contract used in two services as a single type on client side?


I have a .dll that contains my data contracts and I reference this dll in two different services.

Now, on the client side I don't want to add this dll because I need both WPF-clients and Silverlight clients. So, what I want is to be able to use a single data contract on the client side and not with different namespaces for the different services. As I understand this should be possible but I don't know how.

Can someone explain how I can generate a single data contract on client side that can be used for calls to both services?

Thanks for help!

How to scale from Single Farm Services to Enterprise Farm Services


I have a question onHow to scale from Single Farm Services to Enterprise Farm Services. i.e

Today , if i have a Farm with All Services like Managed metadata and Search running .. . but  tommorow  client introduce 2 new farms then there are 2 options w.r.t to service sharing

a) either do cross farms sharing of services ... which i understand how it will happen

b) or because of XYZ reasons , go for Enterprise Service Farms which hosts your manage metadata service / Earch for all your farms .... 

So, question is in this case how one will move existing managed metedata / Search service to Enterprise Service Farm ?


Multiple Services Using single SQL Process


I'm looking to deploy the following services;
Sharepoint Foundation 2010
Business Contact Manager 2010
Windows Update Services
Forefront Client Security
Autodesk Data Management Services 2011.

I would like SQL Server installed on one host system.

Is it possible/good practice  to setup each of the above's databases to a single SQL process. Or does each need its own process. Or which services will work with one another?. The concern is memory usage.

Thank you.

View for a single list item?


I have a SharePoint 2010 list that manages work orders, but I can't find a way to create a view that shows only one record in a receipt-like format.  I have seen that there is the capability to use XSLT to create custom views, but I can't see where I would upload/edit this in SharePoint Designer (I have Visual Studio, but haven't started using it yet for SharePoint development)

Here is an example of what I want to do...

Fields in the List:

Date | Customer Name | Description | Quote

I'd like to print out a receipt that looks like this:

Date: 10/15/2010
Customer Name: Joe Smith
Description: Level 1 Tune-Up
Quote: $200

I'm assuming that a View (which can be printed) would be the easiest way to do this, and that a custom Web Part would be the best but also a lot more work.

Copy List Item using web services

how to copy a list item using web services?

Update Single item with EntityFramework


I want to update object via entity framework

For example I have to changed object


I want to save change to the Obj1 Only

   public void Edit(Company _Company)
            //_context.ApplyPropertyChanges("Company", _Company);

I try to Save with ApplyPropertyChanges but the data didn't saved

How can I update object?


Unable to retrieve Lookup fields or item URL values from Library(Wiki Page Library) item when using



When I execute, "l["Category"].ToString();" and the field is a lookup field it returns, "Microsoft.SharePoint.Client.FieldLookupValue[]", on the other hand when I execute "l["Description"].ToString();" which is a normal string field I get the string(multiline) value back, any idea what could be going on here? I have tried, static/internal/displayname all with the same result(lol moment,

Excel Services data connection issue. Single environment, none authentication


I really need someone's help to configure my SharePoint 2007/ Excel services connectioon to SSAS 2008. It surely cannot be that complicated???

MOSS on server 1
SSAS 2008 cube on server 1
Trusted data provider created (OLE DB, MSOLAP.4)
Trusted data connection library created
Trusted File location created - children trusted, allow external data = "Trusted data connection libraries and embedded"
Unattended Service Account - setup

I use Excel and create a new .odc file with athenticated type = NONE and save it to the Trusted data connection library. Using the odc I open a new workbook. I firstly get a security warning saying that "MS Office has identified a potential security concern. Data connections have been blocked. If you choose to enable data connections..."

I click on Enable, and now have access to my cube. I create a pivit table and chart and publish the workbook back to a child folder in the Trusted File location. All okay so far!!

Now I open the new workbook, and as soon as I try and interact with it, I get the dreaded error "Unable to retrieve external data for the following connections:


The data sources may be unreachable, may not be responding, or may have denied you access

Verify that data refresh is enabled for the

Why is the "WCF Services" entry in the Add New Item window in VS 2010 missing? How to show it?


Why is the "WCF Services" entry in the Add New Item window in VS 2010 missing?  How to show it?

I've noticed that several templates are missing in the Add New Item window in VS 2010.

How can i get the WCF Services to show?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend