Solved

SharePoint Lists and Search Web Services

Posted on 2010-11-10
3
336 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

752 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