<?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 How to call REST API at SOE using HTTPS in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-rest-api-at-soe-using-https/m-p/780329#M1121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We're working with a Geodatabase instance that comes from a feature service (Connector is ServiceConnectionProperties, URL is like '&lt;A class="link-titled" href="https://vhm-ut-portal.nbb.intern.aed-sicad.de/server/rest/services/FluviusPlanningService/FeatureServer" title="https://vhm-ut-portal.nbb.intern.aed-sicad.de/server/rest/services/FluviusPlanningService/FeatureServer"&gt;https://localhost/server/rest/services/MyService/FeatureServer&lt;/A&gt;&amp;nbsp;'). There's also a map server available to our URL that exposes a Server Object Extension that we want to call in the same context as the geodatabase (like ''&lt;A class="" href="https://vhm-ut-portal.nbb.intern.aed-sicad.de/server/rest/services/FluviusPlanningService/FeatureServer" title="https://vhm-ut-portal.nbb.intern.aed-sicad.de/server/rest/services/FluviusPlanningService/FeatureServer"&gt;https://localhost/server/rest/services/MyService/MapServer/exts/MySoe/MyRestApi&lt;/A&gt;'). But since this is an HTTPS Uri all calls to REST endpoints need to have a token.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody tell me how to retrieve the token that is currently used with the (Service) Geodatabase so that I can use it for my further calls to the SOE? Though I can retrieve a Token from the active portal I'm currently connected using &lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var arcGisPortalManager = ArcGISPortalManager.Current;&lt;/P&gt;&lt;P&gt;var arcGisPortal = arcGisPortalManager.GetActivePortal();&lt;/P&gt;&lt;P&gt;var token = arcGisPortal?.GetToken();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but that's not neccessary the token that is used by this Feature Service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in short: How can I retrieve the token from the Geodatabase?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2019 17:34:52 GMT</pubDate>
    <dc:creator>KarlHuber</dc:creator>
    <dc:date>2019-02-18T17:34:52Z</dc:date>
    <item>
      <title>How to call REST API at SOE using HTTPS</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-rest-api-at-soe-using-https/m-p/780329#M1121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We're working with a Geodatabase instance that comes from a feature service (Connector is ServiceConnectionProperties, URL is like '&lt;A class="link-titled" href="https://vhm-ut-portal.nbb.intern.aed-sicad.de/server/rest/services/FluviusPlanningService/FeatureServer" title="https://vhm-ut-portal.nbb.intern.aed-sicad.de/server/rest/services/FluviusPlanningService/FeatureServer"&gt;https://localhost/server/rest/services/MyService/FeatureServer&lt;/A&gt;&amp;nbsp;'). There's also a map server available to our URL that exposes a Server Object Extension that we want to call in the same context as the geodatabase (like ''&lt;A class="" href="https://vhm-ut-portal.nbb.intern.aed-sicad.de/server/rest/services/FluviusPlanningService/FeatureServer" title="https://vhm-ut-portal.nbb.intern.aed-sicad.de/server/rest/services/FluviusPlanningService/FeatureServer"&gt;https://localhost/server/rest/services/MyService/MapServer/exts/MySoe/MyRestApi&lt;/A&gt;'). But since this is an HTTPS Uri all calls to REST endpoints need to have a token.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody tell me how to retrieve the token that is currently used with the (Service) Geodatabase so that I can use it for my further calls to the SOE? Though I can retrieve a Token from the active portal I'm currently connected using &lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var arcGisPortalManager = ArcGISPortalManager.Current;&lt;/P&gt;&lt;P&gt;var arcGisPortal = arcGisPortalManager.GetActivePortal();&lt;/P&gt;&lt;P&gt;var token = arcGisPortal?.GetToken();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but that's not neccessary the token that is used by this Feature Service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in short: How can I retrieve the token from the Geodatabase?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2019 17:34:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-rest-api-at-soe-using-https/m-p/780329#M1121</guid>
      <dc:creator>KarlHuber</dc:creator>
      <dc:date>2019-02-18T17:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to call REST API at SOE using HTTPS</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-rest-api-at-soe-using-https/m-p/1187938#M8315</link>
      <description>&lt;P&gt;I, too would be interested in whether the Pro SDK has anything specific on this, including maybe a sample.&amp;nbsp; All I have come across in the SDK document is &lt;A href="https://pro.arcgis.com/en/pro-app/2.9/sdk/api-reference/index.html#topic20370.html" target="_self"&gt;IServerObjectExtension&lt;/A&gt;, and the methods an implementer would need to do.&amp;nbsp; There is documentation that talks about communications being done via REST, but certain operations, like Query, Search, ApplyEdits.&amp;nbsp; When one drills down into the code, one specifically gets right into InterOp.&amp;nbsp; It seems to me that SOE's would be accessed in the Pro SDK using a REST client, or standard .Net documented tools for doing REST over HttpClient.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 17:52:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-rest-api-at-soe-using-https/m-p/1187938#M8315</guid>
      <dc:creator>JimGrinwald</dc:creator>
      <dc:date>2022-06-29T17:52:22Z</dc:date>
    </item>
  </channel>
</rss>

