Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SharePoint Lists and Search Web Services

Posted on 2010-11-10
3
Medium Priority
?
352 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 1000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

730 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