File: rsSamplesQueryViewer.htm

package info (click to toggle)
office2003-schemas 1.0%2Bds-1
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, sid, trixie
  • size: 42,304 kB
  • sloc: javascript: 2,429; makefile: 29
file content (9 lines) | stat: -rw-r--r-- 8,554 bytes parent folder | download
1
2
3
4
5
6
7
8
9
<html dir="ltr"><head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META HTTP-EQUIV="assetid" CONTENT="HV01085152"><META NAME="lcid" CONTENT="1033"><title>Query Viewer Sample</title><link rel="stylesheet" type="text/css" href="office10.css"><script type="text/javascript" language="Javascript" src="ExpCollapse.js"></script><script type="text/javascript" language="JavaScript" src="inline.js"></script></head><body><p id="ExpandAllLine" class="ExpFav"><a href="#" onclick="ExpandAll()" onkeypress="ExpandAll()" class="DropDown"><img id="picHeader" border="0" src="expandtri.gif" alt="Show All"><span id="ExpandAll">Show All</span></a></p><h1>Query Viewer Sample</h1><p>The Query Viewer sample research service  displays a query packet in plain text. This tool facilitates debugging a research service during development.</p><p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">Configuring the Query Viewer research service</a></p><div id="ExpCol" class="collapsed" border="0">The Research Service SDK provides the source files queryviewer.asmx and queryviewer.asmx.cs for the Query Viewer research service. This section describes how to build a Query Viewer research service as a Web service based on these files.<div class="ind"><p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">Requirements</a></p><div id="ExpCol" class="collapsed" border="0"><ul><li>Microsoft® Office 2003</li><li>Microsoft .NET Framework 1.0 or later</li><li>Microsoft .NET Framework 1.0 Software Development Kit, or a later release</li><li>Microsoft Internet Information Services (IIS) 5.0 or later</li></ul><p><b>Note</b>  IIS should be installed before you set up the Microsoft .NET Framework SDK. If you have installed or re-installed IIS after setting up the Microsoft .NET Framework SDK, you will experience unexpected behavior when you try to view ASP.NET pages. To fix this, register ASP.NET with IIS again by running the aspnet_regiis.exe utility. For more information, see Knowledge Base article 306005 , "<a href="http://r.office.microsoft.com/r/rlidAWSContentRedir?AssetID=XT010971891033&amp;CTT=11&amp;Origin=HV010851521033" target="_new">HOWTO: Repair IIS Mapping After You Remove and Reinstall IIS</a>.”</p></div></div><div class="ind"><p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">Configure the research service</a></p><div id="ExpCol" class="collapsed" border="0"><ol><li>Do one of the following: <ul><li>If you have installed the Research SDK onto the computer that hosts the IIS server <i>ServerName</i>, go to step 2.</li><li><p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">If you have installed the Research SDK on a computer other than <i>ServerName</i>: </a></p><div id="ExpCol" class="collapsed" border="0"><ol><li>Create a folder named "Tools" on <i>ServerName</i>.<p><b>Note</b>  To avoid access problems when running the Query Viewer Web service, do not place the Tools folder under the My Documents folder.</p></li><li>From the computer that the SDK is installed on, copy the contents of the Tools folder (under <i>Drive</i>:\Program Files\Microsoft Office 2003 Developer Resources\Microsoft Office 2003 Research Service SDK) to the Tools folder on <i>ServerName</i>.</li></ol></div></li></ul></li><li><p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">Map the Tools folder to a virtual directory named ToolsServices on IIS server <i>ServerName</i>.</a></p><div id="ExpCol" class="collapsed" border="0"><ol><li>From the Microsoft Windows® <b class="ui">Start</b> menu, click <b class="bterm">Control Panel</b>, and then double-click <b class="ui">Administrative Tools</b>.</li><li>Double-click <b class="ui">Internet Information Services</b>.</li><li>In the Internet Information Services folder tree, expand the folders for the local computer, the <b class="ui">Web Sites</b> directory, and the <b class="ui">Default Web Site</b>.</li><li>Create a new virtual directory named ToolsServices by right-clicking <b class="ui">Default Web Site</b> and selecting <b class="ui">New</b> and <b class="ui">Virtual Directory</b>. Follow the instructions in the Virtual Directory Creation Wizard to map Tools to ToolsServices.</li></ol></div></li></ol><p>The Research Service SDK provides the assembly for this research service, queryviewer.dll,  in Tools\Bin.</p><p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">If you need to modify queryviewer.asmx.cs: </a></p><div id="ExpCol" class="collapsed" border="0"><p>With the modified queryviewer.asmc.cs located on <i>ServerName</i>, at the Windows command prompt, change to the Tools\Queryviewer folder and run make.bat to compile and build the Web service. The assembly file queryviewer.dll will be generated in the Tools\Bin folder.</p><p><b>Note</b>  Make.bat uses the Microsoft Visual C#® command-line compiler, csc.exe, which is available as part of the Microsoft .NET Framework SDK. If necessary, modify make.bat  to include a search path for the compiler.</p></div></div></div></div><p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">Using the Query Viewer research service</a></p><div id="ExpCol" class="collapsed" border="0">Before you can search on the Query Viewer research service for the first time, you must add the research service to the <b class="bterm">Research</b> task pane by using the URL http://<i>ServerName</i>/ToolsServices/QueryViewer/queryviewer.asmx. For more information about adding a research service, see <a href="rsAddingUI.htm" id="HV01082279" lcid=" ">Adding Services through the Office User Interface</a>.<p>In the <b class="bterm">Research</b> task pane, type any text under <b class="ui">Search for</b>. This becomes the query text for the query.</p><p>The Query Viewer research service will display the entire query packet in plain text in the task pane, with each element and its value in the packet.</p></div><p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">Design of the Query Viewer research service</a></p><div id="ExpCol" class="collapsed" border="0"><p>The Query Viewer research service specifies two Web methods: <b class="bterm">Query</b> and <b class="bterm">Registration</b>, under the <b class="bterm">Search</b> namespace. The page http://<i>ServerName</i>/Query Viewer/queryviewer.asmx provides a brief description and a hyperlink to the formal definition of each method.</p><div class="ind"><p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show"><b class="bterm">Query</b></a></p><div id="ExpCol" class="collapsed" border="0"><p>This method returns a query response that displays the entire response packet in plain text on the <b class="bterm">Research</b> task pane. The query response supports the <a href="rsxsdResponse.htm" id="HV01084530" lcid=" ">Microsoft.Search.Response Schema</a>.</p></div></div><div class="ind"><p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show"><b class="bterm">Registration</b></a></p><div id="ExpCol" class="collapsed" border="0"><p>This method is called when you initially add the Query Viewer research service to the task pane and sends a registration request. This method always returns a registration response. The registration response supports the  <a href="rsxsdRegistrationResponse.htm" id="HV01084526" lcid=" ">Microsoft.Search.Registration.Response Schema</a>.</p></div></div><p>For more information about the research service  schemas, see <a href="rsReferenceSchemas.htm" id="HV01082292" lcid=" ">XML Schemas Overview</a>.</p></div><center><a href="XMLSchemaCopyright_HV01147162.htm">&copy;2003-2004 Microsoft Corporation. All rights reserved.</a>  

Permission to copy, display and distribute this document is available at: <a 

href="http://r.office.microsoft.com/r/rlidAWSContentRedir?AssetID=XT010988631033&amp;CTT=11&amp;Origin=HV011232471033" 

target="_new">http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp</a></center></body></html>