c# - Search Server XML response format -
i wrote small program - makes requests microsoft search server (_vti_bin/search.asmx) web service, receives answers , display them. format of request string.
query packet here:
@"<querypacket xmlns='urn:microsoft.search.query'>       <query>           <supportedformats>              <format revision='1'> urn:microsoft.search.response.document:document</format>           </supportedformats>           <context>               <querytext language='en' type='string'>{0}               </querytext>               </context>               <resultprovider>default</resultprovider>               <range>                  <count>10</count>               </range>            </query>     </querypacket>"   and making request code:
var queryservice = new querywebserviceproxy.queryservice(); queryservice.credentials = system.net.credentialcache.defaultcredentials; messagebox.show(queryservice.query(getxmlstring()));  private string getxmlstring() {      return string.format(query_xml, querytextbox.text); }   there 2 types of response: dataset , xml. prefer work xml, dataset answer has more information xml.
dataset: workid, rank, title, size, path, description, write, sitename, collapsingstatus, hithighlightedsummary, hithighlightedproperty, contentclass, isdocument... xml: title, action, urllink, description, date
can receive more information in xml format? maybe tag "supportedformats" can me?
 
 
  
Comments
Post a Comment