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="HV01082286"><META NAME="lcid" CONTENT="1033"><title>Hello World 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>Hello World Sample</h1><p>This Hello World sample research service accepts an arbitrary query and returns a query response that displays some simple text on the <b class="ui">Research</b> task pane.</p><p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">Configuring the Hello World research service</a></p><div id="ExpCol" class="collapsed" border="0"><p>This section assumes that the Research Service Software Development Kit has been installed on a client computer that is not necessarily the same computer as the computer that hosts the IIS server, <i>ServerName</i>.</p><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 Visual Studio® .NET 2003 (to modify and rebuild the Web service if necessary)</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 and Microsoft Visual Studio .NET. 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&CTT=11&Origin=HV010822861033" 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 on 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 Hello World Sample on <i>ServerName</i>.<p><b>Note</b>  To avoid access problems when running  the Hello World Web service, do not place the Hello World Sample folder in the My Documents folder.</p></li><li>From the computer that the SDK is installed on, copy the contents of the Hello World Sample folder (under <i>Drive</i>:\Program Files\Microsoft Office 2003 Developer Resources\Microsoft Office 2003 Research Service SDK) to the Hello World Sample folder on <i>ServerName</i>.</li></ol></div></li></ul></li><li>On  <i>ServerName</i>, create the bin folder under the Hello World Sample folder. Move HelloWorldVB.dll from the Hello World Sample folder  to the Hello World Sample\bin folder.</li><li><p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">Map the Hello World Sample folder to a virtual directory named HelloWorldService on <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="ui">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 <b class="ui">Internet Information Services </b>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 HelloWorldService 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 on the <b class="ui">Virtual Directory Creation Wizard</b>.</li></ol></div></li></ol></div></div></div><p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">Using the Hello World research service</a></p><div id="ExpCol" class="collapsed" border="0"><p>Before you can use the Hello World research service for the first time, you must add the research service to the <b class="ui">Research</b> task pane  by using the URL http://<i>ServerName</i>/HelloWorldService/HelloWorldVB.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><p>The Hello World research service accepts any input. To use the service, select it as the research service to search.</p></div><p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">Design of the Hello World research service</a></p><div id="ExpCol" class="collapsed" border="0"><p>The Hello World research service specifies two Web methods: <b class="bterm">Registration</b> and <b class="bterm">Query</b> under the <b class="bterm">Search</b> namespace. The page http://<i>ServerName</i>/HelloWorldService/HelloWorldVB.asmx provides a brief description of each of the methods, and a hyperlink to the formal definition of these methods.</p><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 the first time that you add the Hello World research service to the task pane and sends a registration request. This method puts together and 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><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 parses a query for the domain and query ID. It uses the same domain and query ID to fill out the query response packet, adds text to the content, fills out the rest of the packet, and returns it. The query response supports the <a href="rsxsdResponse.htm" id="HV01084530" lcid=" ">Microsoft.Search.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">©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&CTT=11&Origin=HV011232471033" 
target="_new">http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp</a></center></body></html> 
     |