Solved

SharePoint Lists and Search Web Services

Posted on 2010-11-10
3
299 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now