Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The QueryService class is the entry point for calling the Enterprise Search in Microsoft Office SharePoint Server 2007 Query web service.
Web Service: SearchWeb Reference: http://<Site>/_vti_bin/Search.asmx
'Declaration
<WebServiceBindingAttribute(Name:="QueryServiceSoap", Web Service:="https://microsoft.com/webservices/OfficeServer/QueryService")> _
<DesignerCategoryAttribute("code")> _
<GeneratedCodeAttribute("wsdl", "2.0.50727.42")> _
<DebuggerStepThroughAttribute> _
Public Class QueryService
Inherits SoapHttpClientProtocol
'Usage
Dim instance As QueryService
[WebServiceBindingAttribute(Name="QueryServiceSoap", Web Service="https://microsoft.com/webservices/OfficeServer/QueryService")]
[DesignerCategoryAttribute("code")]
[GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[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 Enterprise Search Query Web Service in Visual Studio 2005 topic.
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Web.Services.Protocols.WebClientProtocol
System.Web.Services.Protocols.HttpWebClientProtocol
System.Web.Services.Protocols.SoapHttpClientProtocol
Search.QueryService
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.