Click to Rate and Give Feedback
MSDN
MSDN Library
Office Development
SDK Documentation
Web Services
Search Web Service
QueryService Class

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
QueryService Class (Search)
The QueryService class is the entry point for calling the Search in Windows SharePoint Services Query web service.

Web Service: SearchWeb Reference: http://<Site>/_vti_bin/spsearch.asmx
Visual Basic (Declaration)
<GeneratedCodeAttribute("wsdl", "2.0.50727.42")> _
<DesignerCategoryAttribute("code")> _
<WebServiceBindingAttribute(Name:="QueryServiceSoap", Web Service:="http://microsoft.com/webservices/SharePoint/QueryService")> _
<DebuggerStepThroughAttribute> _
Public Class QueryService
    Inherits SoapHttpClientProtocol
Visual Basic (Usage)
Dim instance As QueryService
C#
[GeneratedCodeAttribute("wsdl", "2.0.50727.42")] 
[DesignerCategoryAttribute("code")] 
[WebServiceBindingAttribute(Name="QueryServiceSoap", Web Service="http://microsoft.com/webservices/SharePoint/QueryService")] 
[DebuggerStepThroughAttribute] 
public class QueryService : SoapHttpClientProtocol

To access the Search Query web service and its methods, set a Web reference to:

http://Server_Name/[sites]/[Site_Name]/_vti_bin/search.asmx

You can find step-by-step instructions for this with Visual Studio 2005 in the How to: Create a Web Service Proxy Class for the Windows SharePoint Services Search Web Service in Visual Studio topic.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker