<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Access configuration store from SOE in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/access-configuration-store-from-soe/m-p/479362#M18533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the information Domenico.&amp;nbsp; I appreciate it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Richard&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2012 21:42:35 GMT</pubDate>
    <dc:creator>RichardWatson</dc:creator>
    <dc:date>2012-10-23T21:42:35Z</dc:date>
    <item>
      <title>Access configuration store from SOE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/access-configuration-store-from-soe/m-p/479357#M18528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a custom SOE which needs to access custom site properties, i.e. properties which are site wide and not specific to the particular instance of the SOE/map service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was thinking that it might be nice to simply add these to the site wide configuration store.&amp;nbsp; Maybe I could create a new subdirectory which might hold custom site information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also know that I can get the location of the configuration store via REST.&amp;nbsp; The problem is that I am running in the context of the SOE and, to the best of my knowledge, it does not know this.&amp;nbsp; Just wondering if anyone has any thoughts with regards to how to find out the location of the configuration store from an SOE.&amp;nbsp; ArcGIS Server clearly knows this information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also interested if anyone has thoughts with regards to how best to handle this problem.&amp;nbsp; The thing that I was trying to avoid is having users configure information on every machine in the site.&amp;nbsp; I am thinking about how to make this easily for cloud deployment.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 20:49:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/access-configuration-store-from-soe/m-p/479357#M18528</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-10-19T20:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Access configuration store from SOE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/access-configuration-store-from-soe/m-p/479358#M18529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that I figured out a good way to handle this.&amp;nbsp; I'll explain my approach in case someone else has a similar problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A .soe file is really just a renamed zip file.&amp;nbsp; It can be created in Visual Studio 2010 by using the ESRI SOE template which adds custom msbuild steps (which BTW do not work in Visual Studio 2012).&amp;nbsp; After adding a Config.xml file, these steps zip up the contents of the output directory and name the resulting file ProjectName.soe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, what you can do is to simply add an XML file to the Visual Studio project such that it is copied to the output directory.&amp;nbsp; When you deploy the SOE you can load the contents of the XML file (it will be in the same directory as the executing assembly of the SOE) in your code in order to read site configuration options.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 11:57:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/access-configuration-store-from-soe/m-p/479358#M18529</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-10-22T11:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Access configuration store from SOE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/access-configuration-store-from-soe/m-p/479359#M18530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this info you can get from IDiscoveryServerConfigStore &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/0010/001000000150000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/0010/001000000150000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for your properties why don't you use simple properties ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

[ServerObjectExtension("MapServer",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AllCapabilities = "",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DefaultCapabilities = "",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description = "Test",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisplayName = "TestSOE",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Properties = "FilePathStoreConfig=...;PropertyB=Cities",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SupportsREST = true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SupportsSOAP = false)]
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:09:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/access-configuration-store-from-soe/m-p/479359#M18530</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2021-12-11T21:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Access configuration store from SOE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/access-configuration-store-from-soe/m-p/479360#M18531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;for your properties why don't you use simple properties ?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My thought was that SOE properties are specified per map service instance.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I also want is properties which apply to all instances of a map service.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my particular case, I have a licensing scheme which requires that my SOE communicate with an external licensing server.&amp;nbsp; If I use simple properties then the user would have to provide this information for every map service they create with my extension.&amp;nbsp; What I want is a technique whereby this information can be configured once, i.e. at a site level.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does that make sense?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 18:12:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/access-configuration-store-from-soe/m-p/479360#M18531</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-10-22T18:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Access configuration store from SOE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/access-configuration-store-from-soe/m-p/479361#M18532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can for example get url admin rest&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Guid guid = Marshal.GenerateGuidForType(typeof(IServerEnvironment));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UID uid = new UIDClass();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uid.Value = guid.ToString("B");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IEnvironmentManager environmentManager = new EnvironmentManager() as IEnvironmentManager;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IServerEnvironment2 serverEnvironment = environmentManager.GetEnvironment(uid) as IServerEnvironment2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPropertySet b = serverEnvironment.Properties;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; object[] name = new object[1];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; object[] values = new object[1];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b.GetAllProperties(out name[0], out values[0]);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; object[] nameList = (object[])name[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; object[] valueList = (object[])values[0];


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:09:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/access-configuration-store-from-soe/m-p/479361#M18532</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2021-12-11T21:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Access configuration store from SOE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/access-configuration-store-from-soe/m-p/479362#M18533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the information Domenico.&amp;nbsp; I appreciate it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Richard&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 21:42:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/access-configuration-store-from-soe/m-p/479362#M18533</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-10-23T21:42:35Z</dc:date>
    </item>
  </channel>
</rss>

