Getting error when sending a SOAP request to the search.asmx page using SPServices

Jun 28, 2013 at 5:11 PM
Im using SP2010 and using spservices library, I want to make a search request to the search request.asmx page. When I try my post:
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Query xmlns="urn:Microsoft.Search">
<queryXml><QueryPacket xmlns='urn:Microsoft.Search.Query' Revision='1000'><Query><Context><QueryText language='en-US' type='MSSQLFT'>SELECT Title, Rank, Size, Description, Write, Path FROM Scope() WHERE CONTAINS ('%Avoid%') AND (("SCOPE" = 'DemoLG')) ORDER BY "Rank" DESC</QueryText></Context><Range><Count>100000</Count></Range></Query></QueryPacket></queryXml>
</Query>
</soap:Body>
</soap:Envelope>



I get the error:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<QueryResponse xmlns="urn:Microsoft.Search">
<QueryResult><ResponsePacket xmlns="urn:Microsoft.Search.Response"><Response domain=""><Status>ERROR_SERVER</Status><DebugErrorMessage>System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]</DebugErrorMessage></Response></ResponsePacket></QueryResult>
</QueryResponse>
</soap:Body>
</soap:Envelope>



Does anyone know whats wrong here?

Thanks