QueryEx web service consumed by SSRS<div class=body>I am new to web services so please forgive any naivete in my question...<br/><br/>I am trying to use the QueryEx method of the Sharepoint  Search web service as a data source.  My understanding is I can use this service to query a MOSS site with conditional arguments and return a list of links that fit the one or more cases.  <br/><br/>I need to be able to pass several phrases that I want to search for and get back results for any of them.  I went down the path of using keyword search via the sharepoint url but if all the phrases are not present nothing comes back.  This does not fit my business case so here I am trying to write a custom search report in SSRS<br/><br/>I have used the example for creating an SSRS report using the GetListItems method of the List web service that can be found in several blogs as a starting point for using the Search web service.<br/><br/>My datasource is configured with the following URL<br/><br/>     <a href="http://sharepoint/sites/MYD_30014/Wiki/_vti_bin/search.asmx"><span style="color:#0033cc">http://sharepoint/sites/MYD_30014/Wiki/_vti_bin/search.asmx</span></a><br/><br/>My Query in the data set is as follows<br/><br/> <div><span class=code-keyword>     &lt;Query domain=&quot;QDomain&quot;&gt;<br/>         &lt;SupportedFormats&gt;<br/>           &lt;Format&gt;urn:Microsoft.Search.Response.Document.Document&lt;/Format&gt;<br/>         &lt;/SupportedFormats&gt;<br/>         &lt;Context&gt;<br/>           &lt;QueryText language=&quot;en-US&quot; type=&quot;MSSQLFT&quot;&gt;<br/>              SELECT Title, Path, Description, Write, Rank, Size FROM Scope () WHERE FREETEXT('Revenue')<br/>           &lt;/QueryText&gt;<br/>         &lt;/Context&gt;<br/>     &lt;/Query&gt;</span></div> <br/>When I run this query, I get the following message:<br/><br/>     The 'p' start tag on line 103 does not match the end tag of 'ul'. Line 105, position 17. (System.Xml)<br/><br/>I also get a few columns in my dataset window.  The content of these columns leads me to think that the webservice is returning the WSDL and SSRS is trying to unsuccessfully parse it.  (The first column has &quot;Microsoft Office SharePoint Server 2007 Query Web Service&quot; in it for example)<br/><br/>I tried pulling out the QueryText element and using it as a parameter but SSRS would not even submit that providing this error:<br/><br/>     Failed to execute web request for the specified URL. <br/><br/>Is what I am trying to do even possible?<br/><br/>What do I need to do to actually call the method and return the flattened xml recordset?<br/><br/>Any help is appreciated.<br/></div>© 2009 Microsoft Corporation. All rights reserved.Wed, 01 Jul 2009 15:24:27 Z1f1bcbdb-1959-47fd-96e2-61ef53135521http://social.msdn.microsoft.com/Forums/en-US/sharepointbi/thread/1f1bcbdb-1959-47fd-96e2-61ef53135521#1f1bcbdb-1959-47fd-96e2-61ef53135521http://social.msdn.microsoft.com/Forums/en-US/sharepointbi/thread/1f1bcbdb-1959-47fd-96e2-61ef53135521#1f1bcbdb-1959-47fd-96e2-61ef53135521Henk van der Meerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Henk%20van%20der%20MeerQueryEx web service consumed by SSRS<div class=body>I am new to web services so please forgive any naivete in my question...<br/><br/>I am trying to use the QueryEx method of the Sharepoint  Search web service as a data source.  My understanding is I can use this service to query a MOSS site with conditional arguments and return a list of links that fit the one or more cases.  <br/><br/>I need to be able to pass several phrases that I want to search for and get back results for any of them.  I went down the path of using keyword search via the sharepoint url but if all the phrases are not present nothing comes back.  This does not fit my business case so here I am trying to write a custom search report in SSRS<br/><br/>I have used the example for creating an SSRS report using the GetListItems method of the List web service that can be found in several blogs as a starting point for using the Search web service.<br/><br/>My datasource is configured with the following URL<br/><br/>     <a href="http://sharepoint/sites/MYD_30014/Wiki/_vti_bin/search.asmx"><span style="color:#0033cc">http://sharepoint/sites/MYD_30014/Wiki/_vti_bin/search.asmx</span></a><br/><br/>My Query in the data set is as follows<br/><br/> <div><span class=code-keyword>     &lt;Query domain=&quot;QDomain&quot;&gt;<br/>         &lt;SupportedFormats&gt;<br/>           &lt;Format&gt;urn:Microsoft.Search.Response.Document.Document&lt;/Format&gt;<br/>         &lt;/SupportedFormats&gt;<br/>         &lt;Context&gt;<br/>           &lt;QueryText language=&quot;en-US&quot; type=&quot;MSSQLFT&quot;&gt;<br/>              SELECT Title, Path, Description, Write, Rank, Size FROM Scope () WHERE FREETEXT('Revenue')<br/>           &lt;/QueryText&gt;<br/>         &lt;/Context&gt;<br/>     &lt;/Query&gt;</span></div> <br/>When I run this query, I get the following message:<br/><br/>     The 'p' start tag on line 103 does not match the end tag of 'ul'. Line 105, position 17. (System.Xml)<br/><br/>I also get a few columns in my dataset window.  The content of these columns leads me to think that the webservice is returning the WSDL and SSRS is trying to unsuccessfully parse it.  (The first column has &quot;Microsoft Office SharePoint Server 2007 Query Web Service&quot; in it for example)<br/><br/>I tried pulling out the QueryText element and using it as a parameter but SSRS would not even submit that providing this error:<br/><br/>     Failed to execute web request for the specified URL. <br/><br/>Is what I am trying to do even possible?<br/><br/>What do I need to do to actually call the method and return the flattened xml recordset?<br/><br/>Any help is appreciated.<br/></div>Wed, 01 Jul 2009 14:57:40 Z2009-07-01T14:57:40Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointbi/thread/1f1bcbdb-1959-47fd-96e2-61ef53135521#8bf9d3e5-5def-46b2-9661-8d8dd7f2eb4fhttp://social.msdn.microsoft.com/Forums/en-US/sharepointbi/thread/1f1bcbdb-1959-47fd-96e2-61ef53135521#8bf9d3e5-5def-46b2-9661-8d8dd7f2eb4fMike Walsh MVPhttp://social.msdn.microsoft.com/Profile/en-US/?user=Mike%20Walsh%20MVPQueryEx web service consumed by SSRSSSRS questions go to Business Intelligence.<br/><br/>Moving this there.<hr class="sig">WSS FAQ sites: <a href="http://wssv2faq.mindsharp.com">http://wssv2faq.mindsharp.com</a> and <a href="http://wssv3faq.mindsharp.com">http://wssv3faq.mindsharp.com</a> <br/>Total list of WSS 3.0 / MOSS 2007 Books (including foreign language) <a href="http://wssv3faq.mindsharp.com/Lists/v3 WSS FAQ/V Books.aspx">http://wssv3faq.mindsharp.com/Lists/v3%20WSS%20FAQ/V%20Books.aspx</a>Wed, 01 Jul 2009 15:24:07 Z2009-07-01T15:24:07Z