<?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 PrintTask, Secure AGS Service, and Resource Proxy in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700848#M65278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I use the .NET proxy to run transparent token auth for a secure service. URLs to the secure service in the Web_Map_as_JSON cause the PrintTask execute to fail 400, citing the secure service URLs.&amp;nbsp; I've tried proxying the execute call to fetch a token and changing the URLs in the Web_Map_as_JSON to go through the proxy but no dice.&amp;nbsp; &lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I've seen &lt;A href="http://resources.arcgis.com/en/help/main/10.2/#/Printing_maps_that_contain_secured_services/0154000005q3000000/"&gt;this article&lt;/A&gt; referenced in response about this problem, but w&lt;/SPAN&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;e have short lived tokens and the way this article reads we shouldn't need a custom print service. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Is it possible to use PrintTask with a webmap definition referencing secure services by somehow using the resource proxy or do we need to go this route with the custom print service?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Feb 2016 16:48:19 GMT</pubDate>
    <dc:creator>deleted-user-RAnWn8DDSd1P</dc:creator>
    <dc:date>2016-02-25T16:48:19Z</dc:date>
    <item>
      <title>PrintTask, Secure AGS Service, and Resource Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700848#M65278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I use the .NET proxy to run transparent token auth for a secure service. URLs to the secure service in the Web_Map_as_JSON cause the PrintTask execute to fail 400, citing the secure service URLs.&amp;nbsp; I've tried proxying the execute call to fetch a token and changing the URLs in the Web_Map_as_JSON to go through the proxy but no dice.&amp;nbsp; &lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I've seen &lt;A href="http://resources.arcgis.com/en/help/main/10.2/#/Printing_maps_that_contain_secured_services/0154000005q3000000/"&gt;this article&lt;/A&gt; referenced in response about this problem, but w&lt;/SPAN&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;e have short lived tokens and the way this article reads we shouldn't need a custom print service. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Is it possible to use PrintTask with a webmap definition referencing secure services by somehow using the resource proxy or do we need to go this route with the custom print service?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 16:48:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700848#M65278</guid>
      <dc:creator>deleted-user-RAnWn8DDSd1P</dc:creator>
      <dc:date>2016-02-25T16:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask, Secure AGS Service, and Resource Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700849#M65279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post a diagram of how the PrintTask is supposed to talk to the secure service? That would help me understand your question better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing almost the same thing as you so I'm curious to see what problem(s) you encountered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 18:39:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700849#M65279</guid>
      <dc:creator>ZianChoy</dc:creator>
      <dc:date>2016-03-03T18:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask, Secure AGS Service, and Resource Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700850#M65280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We had a similar situation. We have a .net application that was trying to use a print service that included the credentials for a secured WMS provided by an external source. Whenever we tried to use the print service, we received the 400 error. The only thing we needed to do at the end of the day to get it to work was to log into our ArcGIS for server machine using the ArcGIS Server account credentials and connect to the internet. ESRI suggested that when &lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-CA; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;you log-in as the ArcGIS Server account for the first time, proxy settings are populated to it and the ArcGIS for Server can then access internet to connect to the external WMS service.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 20:40:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700850#M65280</guid>
      <dc:creator>CaseyVandenberg1</dc:creator>
      <dc:date>2016-03-03T20:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask, Secure AGS Service, and Resource Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700851#M65281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so my JavaScript application loads webmaps, some of which have operational layers that are to services that are not public. We use the .NET resource proxy script to do token auth against our ArcGIS server for those URLs so users won't have to login. This works.&amp;nbsp; When, from the JavaScript API, I call a PrintTask it fails when one of these definitions contains URLs that are to protected services. From what I can gather the ArcGIS Server print service is making its own requests after getting the Web_Map_as_JSON definition. So even if I manipulate these URLs to go through the proxy script I can't get a PrintTask to successfully execute from the client&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 21:24:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700851#M65281</guid>
      <dc:creator>deleted-user-RAnWn8DDSd1P</dc:creator>
      <dc:date>2016-03-06T21:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask, Secure AGS Service, and Resource Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700852#M65282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The resource proxy will not print a secured map service. This is by design. So it is possible to use the proxy in order to authenticate and display the secured service on the map, but when it comes to printing a secured service, the resource proxy will not handle this scenario as it will not pass the token in the Web_Map_as_JSON parameter. If you are using a short lived token, then a solution would be to let the identity manager handle the authentication for you, meaning that you will get a prompt to enter your credentials once the app loads and then these credentials will be used when you try to print. Otherwise, you can create a custom print service and embed the credentials as described in the article. If you choose to use the second option, please make sure that you use a 10.3 print service or above as there was an issue in the earlier versions which is fixed in 10.3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 01:22:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700852#M65282</guid>
      <dc:creator>ArtemisFili</dc:creator>
      <dc:date>2016-03-08T01:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask, Secure AGS Service, and Resource Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700853#M65283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Artemis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if you are trying to generate a print that includes secured feature services that are hosted on ArcGIS Online?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have created an app that is embedded in a website. In order to bypass the need to log in to ArcGIS Online whenever the app is opened, we have utilized the proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We would like to include Esri's print functionality into the app. But with the proxy utilized, the print requests fail as the Esri Print Service does not have permissions to access the layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 13:53:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700853#M65283</guid>
      <dc:creator>ChristopherSchreiber</dc:creator>
      <dc:date>2016-06-14T13:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask, Secure AGS Service, and Resource Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700854#M65284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having exactly the same problem as yourself.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if you managed to come up with a solution for this? I haven't got access to ArcGIS Server so Im looking for a solution that negates the need to create a custom print services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 22:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700854#M65284</guid>
      <dc:creator>AshleyRymer1</dc:creator>
      <dc:date>2017-08-26T22:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask, Secure AGS Service, and Resource Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700855#M65285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/people/AFili-esristaff"&gt;AFili-esristaff&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Proxy limitation on printing is still present?&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Flavie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 15:03:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700855#M65285</guid>
      <dc:creator>FlavieMORAUX1</dc:creator>
      <dc:date>2018-04-10T15:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask, Secure AGS Service, and Resource Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700856#M65286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone found a workaround for this? The thread does not indicate so. Please let me know we have services that are not able to print the services on a map that we have loaded in our API that are was from NOAA or that are secured livefeeds through esri.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 19:49:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700856#M65286</guid>
      <dc:creator>JanineLatham</dc:creator>
      <dc:date>2018-09-17T19:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask, Secure AGS Service, and Resource Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700857#M65287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have discussed a modification to the Esri Resource proxy that will allow for secured services to be printed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see this discussion:&amp;nbsp;&lt;A href="https://community.esri.com/thread/174867"&gt;Web AppBuilder Print widget and proxy service&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I was able to come up with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;NOTE: These would only work for the DotNet version of the Esri resource proxy.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;OL style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Get the "Web_Map_as_JSON" (WMAJ) parameter (and data it contains) from the the request.&amp;nbsp;&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Using a library like &lt;A href="https://www.newtonsoft.com/json"&gt;Newtonsoft.Json&lt;/A&gt;, deserialize the WMAJ data from a JSON object into a DotNet Object&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Get the "Operational Layers" section of the WMAJ object and add each layer into an array.&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Compare the Layer URL's of the layers from the WMAJ object and the URL's that are defined in the proxy.config file.&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;If a layer's URL matches a URL from the proxy config file, use the credential info to generate a token for it.&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Apply the token to the layer&amp;nbsp;in the array of "Operational Layers"&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Serialize the DotNet WMAJ object (now with tokens for the secured layers) and send the request on its way.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 23:26:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700857#M65287</guid>
      <dc:creator>ChristopherSchreiber</dc:creator>
      <dc:date>2018-09-17T23:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask, Secure AGS Service, and Resource Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700858#M65288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Janine,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Esri love feeds, you could use a proxy hosted on ArcGIS Online. We use the weather watches, warnings, and advisories layer and have it pass through a hosted proxy so that it can be printed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please be aware that if the Esri service consumes credits, then a hosted proxy may not be the best solution, as your account would be billed the credits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more info on hosted proxies, and how to set one up, see the link:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/documentation/core-concepts/security-and-authentication/working-with-proxies/" title="https://developers.arcgis.com/documentation/core-concepts/security-and-authentication/working-with-proxies/"&gt;Working with Proxy Services | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 12:05:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-secure-ags-service-and-resource-proxy/m-p/700858#M65288</guid>
      <dc:creator>ChristopherSchreiber</dc:creator>
      <dc:date>2018-09-18T12:05:24Z</dc:date>
    </item>
  </channel>
</rss>

