Solved

SharePoint Lists and Search Web Services

Posted on 2010-11-10
3
320 Views
Last Modified: 2012-05-10
I would like to know the best solution to interact with SharePoint Web Services :

1/ From my application, I need to select a Document List and upload a local document to the selected list with all metadata
I have found the GetListCollection, UpdateListItems and AddAttachment that could do the job
Is there a better way ?

2/ From my application, I need to Search (fulltext)
I have found FullTextSQLQuery class
I am not understanding exactly the behaviour of this class, in other words what kind of search and result. Could you point me on information about that ?

Should work with WSS3 and SP Foundation.

Thanks
0
Comment
Question by:QUILLET
  • 2
3 Comments
 
LVL 8

Expert Comment

by:static-void
ID: 34100706
Ok so if your wanting to connect to WSS you have a couple of options:
 - Use the builtin webservices. The lists webservice will allow you to perform a CAML query against the list. (http://msdn.microsoft.com/en-us/library/lists.lists.getlistitems(v=office.12).aspx)
 - Write your own webservice and perform your own queries via the object model.

In SP Foundation you have more options, in addition to the above:
 - Use the Rest interface to lists
 - Use the client object model (implementations for .NET, js and silverlight)

If you want cross compatibility between 2007 and 2010 i recommend using the Lists webservice.

Hope this helps.
0
 

Author Comment

by:QUILLET
ID: 34130009
Yes I need to use WebServices.

1/ I need to upload a document with metadata what is the best way to do that ?

2/ I have not found detailed information how is performed a FullTextSQLQuery

Thanks
0
 
LVL 8

Accepted Solution

by:
static-void earned 250 total points
ID: 34133818
http://stackoverflow.com/questions/31868/upload-a-file-to-sharepoint-through-the-built-in-web-services read this, will give you an upload function. In addition you may need to separately set meta. you can do this with the updateListItems method (here http://msdn.microsoft.com/en-us/library/lists.lists.updatelistitems(v=office.12).aspx)

When you say you want to search im assuming you mean searching inside the documents you have just uploaded if this is the case you want to use this webservice:
http://msdn.microsoft.com/en-us/library/ms470518(office.12).aspx 

The FullTextSqlQuery class is used on the server i think so you dont want that as you need it remotely. With the webservice you specify the same query syntax just in an xml argument to the service


0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question