I'm writing a search utility for a web app that is suppose to search sharepoint. So after doing a little research, I find out that there exist a web service called search.asmx that I can use to do my searching. Unfortunately, no matter what I try, I get the following response back from the SharePoint server:
<ResponsePacket xmlns="urn:Microsoft.Search.Response">
<Response domain="">
<Status>ERROR_SERVER</Status>
<DebugErrorMessage>System.ArgumentNullException</DebugErrorMessage>
</Response>
</ResponsePacket>
I have googled and I cannot find a single thing on this. Here is the code I'm using to develop my query:
1 string queryXML =
2 "<QueryPacket xmlns='urn:Microsoft.Search.Query'>" +
3 "<Query>" +
4 "<Context>" +
5 "<QueryText language='en-us' type='MSSQLFT'>" +
6 "SELECT Title, Path, Description, Write, Rank, Size from SCOPE()" +
7 "</QueryText>" +
8 "</Context>" +
9 "</Query>" +
10 "</QueryPacket>";
I read that it might have something to do with the URL of my query service. So I set that explicitly and I'll get the following exception:
Server was unable to process request. ---> There is no Web named "/Shared Documents/_vti_bin/search.asmx".
Any clues?