<?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: Saving credentials with WMS layer in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/saving-credentials-with-wms-layer/m-p/596975#M16060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update: This has been resolved. There is an undocumented property - HIDEUSERPROPERTY that if is set to false will allow saving of credentials. So the code would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;propSet.SetProperty("URL", &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;URL&lt;/SPAN&gt;);
propSet.SetProperty("HIDEUSERPROPERTY", false);
propSet.SetProperty("USER", &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f6f6f6;"&gt;UserName&lt;/SPAN&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
propSet.SetProperty("Password", &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Password&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 01:37:42 GMT</pubDate>
    <dc:creator>ErikHooper</dc:creator>
    <dc:date>2021-12-12T01:37:42Z</dc:date>
    <item>
      <title>Saving credentials with WMS layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/saving-credentials-with-wms-layer/m-p/596974#M16059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some code similar to below that connects to a WMS layer.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var current = new WMSMapLayerClass();
var propSet = new PropertySetClass();
propSet.SetProperty("URL", URL);
propSet.SetProperty("USER", UserName);
propSet.SetProperty("Password", Password);
var connName = new WMSConnectionNameClass();
connName.ConnectionProperties = propSet;
current.Connect(connName); 
....
.Document.FocusMap.AddLayer(&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;current&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;P&gt;This works great. However if I save the layers with a mxd and open with ArcMap I need to re enter the password. It does remember the account and the URL just not the password. There is a check box on the connection screen to "Remember Password", that once is checked fixes the issue. The question is how do I "Remember" the password from the arc objects API?&lt;A href="https://community.esri.com/migrated-users/2979" target="_blank"&gt;Jonathan DeRose&lt;/A&gt;​ Is there anyway we can make this a high priority item. Thanks! &lt;A href="https://community.esri.com/migrated-users/76012" target="_blank"&gt;Jody Anderson&lt;/A&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:37:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/saving-credentials-with-wms-layer/m-p/596974#M16059</guid>
      <dc:creator>ErikHooper</dc:creator>
      <dc:date>2021-12-12T01:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Saving credentials with WMS layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/saving-credentials-with-wms-layer/m-p/596975#M16060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update: This has been resolved. There is an undocumented property - HIDEUSERPROPERTY that if is set to false will allow saving of credentials. So the code would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;propSet.SetProperty("URL", &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;URL&lt;/SPAN&gt;);
propSet.SetProperty("HIDEUSERPROPERTY", false);
propSet.SetProperty("USER", &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f6f6f6;"&gt;UserName&lt;/SPAN&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
propSet.SetProperty("Password", &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Password&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:37:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/saving-credentials-with-wms-layer/m-p/596975#M16060</guid>
      <dc:creator>ErikHooper</dc:creator>
      <dc:date>2021-12-12T01:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Saving credentials with WMS layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/saving-credentials-with-wms-layer/m-p/596976#M16061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tip &lt;A href="https://community.esri.com/migrated-users/45571"&gt;Erik Hooper&lt;/A&gt;, works well on Image Services too!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 02:55:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/saving-credentials-with-wms-layer/m-p/596976#M16061</guid>
      <dc:creator>RowanWinsemius1</dc:creator>
      <dc:date>2015-06-25T02:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Saving credentials with WMS layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/saving-credentials-with-wms-layer/m-p/596977#M16062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder what other properties are undocumented.&amp;nbsp; I'm specifically looking for a way to apply a CQL_FILTER.&amp;nbsp; Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 22:18:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/saving-credentials-with-wms-layer/m-p/596977#M16062</guid>
      <dc:creator>WWalker</dc:creator>
      <dc:date>2017-02-09T22:18:54Z</dc:date>
    </item>
  </channel>
</rss>

