I am working on a small query tool that will be used to make AJAX calls against SharePoint’s Enterprise Search Query Web Service. Previously, I created the SOAP messages by appending a gigantic series of strings together.
In this iteration, I wanted to use JsRender (my template engine of choice right now and the successor to jQuery templates).
The first template, soapQueryEx, is fairly easy because you can just copy it from the method’s page: /_vti_bin/Search.asmx?op=QueryEx.
The second template is more difficult.. you’ll need to craft your “QueryPacket” using the schema (or see Anita’s blog post).
Embedded below are the template examples and code to make the AJAX call.