<?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 Reconfigure the WebDAV URL for the applications via code in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Reconfigure-the-WebDAV-URL-for-the-applications-via-code/m-p/868189#M26401</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;To reconfigure the WebDAV URL for the applications, we perform the following steps in SAS Management Console:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/bicdc/9.4/bimtag/n1uh9f02c7lsnzn1cu57z20h95m8.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/bicdc/9.4/bimtag/n1uh9f02c7lsnzn1cu57z20h95m8.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1. Select Environment Management -&amp;gt;Foundation Services Manager.&lt;BR /&gt;2. Select the application and then select Core -&amp;gt;Information Service.&lt;BR /&gt;3. Right‐click Information Service and select Properties.&lt;BR /&gt;4. In the Information Service Properties dialog box, click the Service Configuration tab and then click Configuration.&lt;BR /&gt;5. In the Information Service Configuration dialog box, click the Repositories tab.&lt;BR /&gt;6. Select WebDAV and then click Edit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;is there a way we&amp;nbsp; can do it via code?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Apr 2023 11:04:19 GMT</pubDate>
    <dc:creator>sathya66</dc:creator>
    <dc:date>2023-04-05T11:04:19Z</dc:date>
    <item>
      <title>Reconfigure the WebDAV URL for the applications via code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Reconfigure-the-WebDAV-URL-for-the-applications-via-code/m-p/868189#M26401</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;To reconfigure the WebDAV URL for the applications, we perform the following steps in SAS Management Console:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/bicdc/9.4/bimtag/n1uh9f02c7lsnzn1cu57z20h95m8.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/bicdc/9.4/bimtag/n1uh9f02c7lsnzn1cu57z20h95m8.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1. Select Environment Management -&amp;gt;Foundation Services Manager.&lt;BR /&gt;2. Select the application and then select Core -&amp;gt;Information Service.&lt;BR /&gt;3. Right‐click Information Service and select Properties.&lt;BR /&gt;4. In the Information Service Properties dialog box, click the Service Configuration tab and then click Configuration.&lt;BR /&gt;5. In the Information Service Configuration dialog box, click the Repositories tab.&lt;BR /&gt;6. Select WebDAV and then click Edit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;is there a way we&amp;nbsp; can do it via code?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 11:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Reconfigure-the-WebDAV-URL-for-the-applications-via-code/m-p/868189#M26401</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2023-04-05T11:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reconfigure the WebDAV URL for the applications via code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Reconfigure-the-WebDAV-URL-for-the-applications-via-code/m-p/868371#M26406</link>
      <description>&lt;P&gt;The short answer is yes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The long answer is you have to unpick the SAS metadata model and &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lrmeta/titlepage.htm" target="_blank" rel="noopener"&gt;metadata interface details&lt;/A&gt; to do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I think that is a cure that is worse than the disease...&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 22:01:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Reconfigure-the-WebDAV-URL-for-the-applications-via-code/m-p/868371#M26406</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-04-05T22:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reconfigure the WebDAV URL for the applications via code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Reconfigure-the-WebDAV-URL-for-the-applications-via-code/m-p/868468#M26407</link>
      <description>&lt;P&gt;That information is stored in a TextStore in XML format, so it would be difficult to swap out the WebDAV URL. This code will output that stored text to the log for the SASPortal4.4 Local Services application:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	length type id $ 50 st $ 32767;
	call missing(of _character_);
	obj="omsobj:TextStore?TextStore[AssociatedProperty/Property/AssociatedObject/ServiceComponent[@Name='Information Service']/Trees/Tree/SoftwareComponents/SoftwareComponent[@Name='SASPortal4.4 Local Services']]";
	rc=metadata_resolve(obj,type,id);
	rc=metadata_getattr(obj,"StoredText",st);
	put st;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The relevant segment of that stored text XML looks like this:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;ReposDef auto="true" base="/SASContentServer/repository/default/sasdav" description="" domain="DefaultAuth" hibdialect="" host="mid.example.com" issecure="false" name="WebDAV" port="7980" protocol="dav" proxy="" uid="ece1b792-0a7a-44d3-2b1f-e010219149d7"/&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Depending on what you are trying to change (just the host name or other options) could try reading out the whole stored text, using a function to find/replace the bit you want changed, and then the METADATA_SETATTR function to write it back.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 15:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Reconfigure-the-WebDAV-URL-for-the-applications-via-code/m-p/868468#M26407</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-04-06T15:28:48Z</dc:date>
    </item>
  </channel>
</rss>

