Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 354
  • Last Modified:

SharePoint Lists and Search Web Services

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
QUILLET
Asked:
QUILLET
  • 2
1 Solution
 
static-voidCommented:
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
 
QUILLETAuthor Commented:
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
 
static-voidCommented:
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now