title: Get Sitecore "Site" data from web.config in WCF
body: <p>I understand the issues with WCF and Sitecore because Sitecore.Context would not be available to the WCF request.</p>
  
  <p>But all I'm really looking to do is pass in a site name, and have WCF return some of the attributes of that "site" node from the "sites" section in the web.config.</p>
  
  <p>For example, in the code below I have a site name of "mysitename" for the website "www.mysite.com". How could I programmically get the site's hostname from the web.config? </p>
  
  <pre><code>&lt;sites&gt;
     &lt;site name="mysitename" hostName="www.mysite.com" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" startItem="/home" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="100MB" registryCacheSize="0" viewStateCacheSize="0" xslCacheSize="5MB" filteredItemsCacheSize="2MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" /&gt;
  &lt;/sites&gt;
  </code></pre>
  
  <p>I don't care if it uses prebuilt sitecore functions, or just .net code that is able to read this section of the web.config. Any feedback would help, thanks.</p>