<?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: Print map with secured WMTS layer using Export Web Map task in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/print-map-with-secured-wmts-layer-using-export-web/m-p/121811#M4745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tanu for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did check using Fiddler and found ArcMap Export Web Map custom task made two identical requests to WMTS service's get capabilities. I expected second request to include "Authorization: Basic xxxxxxx" in header but found it missing. Both calls hade below request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&lt;SPAN&gt;GET &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN style="color: #e23d39;"&gt;wmtsserver&lt;/SPAN&gt;/WMTS/1.1.2?SERVICE=WMTS&amp;amp;VERSION=1.0.0&amp;amp;REQUEST=GetCapabilities HTTP/1.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Accept: */*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;User-Agent: ArcGIS Client Using WinInet&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Host: &lt;SPAN style="color: #e23d39;"&gt;wmtsserver&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Connection: Keep-Alive&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Cache-Control: no-cache&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did the same WMTS get capabilities request using browser (IE) and found two requests in fiddler. First one did not have authorization header but second one did after I provided username and password. See second request below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&lt;SPAN&gt;GET &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwmtsserver%2FWMTS%2F1.1.2%2F%3FSERVICE%3DWMTS%26VERSION%3D1.0.0%26REQUEST%3DGetCapabilities" rel="nofollow" target="_blank"&gt;https://wmtsserver/WMTS/1.1.2/?SERVICE=WMTS&amp;amp;VERSION=1.0.0&amp;amp;REQUEST=GetCapabilities&lt;/A&gt;&lt;SPAN&gt; HTTP/1.1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Accept: text/html, application/xhtml+xml, */*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Accept-Language: en-AU&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Accept-Encoding: gzip, deflate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Host: &lt;SPAN style="color: #e23d39;"&gt;wmtsserver&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Authorization: Basic xxxxxxxxxxxxxxxxxxxx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Connection: Keep-Alive&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;DNT: 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my guess is ArcMap tool is not able to understand 401 challenge to inject basic authorization header in subsequent call even though the tool has the url registered with username and password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Sep 2015 01:27:47 GMT</pubDate>
    <dc:creator>VishApte</dc:creator>
    <dc:date>2015-09-16T01:27:47Z</dc:date>
    <item>
      <title>Print map with secured WMTS layer using Export Web Map task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/print-map-with-secured-wmts-layer-using-export-web/m-p/121809#M4743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to print a map that contains secured WMTS layer as basemap and some operational layers. I have read article &lt;A href="http://server.arcgis.com/en/server/latest/create-web-apps/windows/printing-maps-that-contain-secured-services.htm" title="http://server.arcgis.com/en/server/latest/create-web-apps/windows/printing-maps-that-contain-secured-services.htm"&gt;Printing maps that contain secured services—Documentation (10.3 and 10.3.1) | ArcGIS for Server&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the above article seems to pertain to printing secured ArcGIS server service. The basemap service I am trying to print is a non-esri secured WMTS service with basic authentication (401 challenge in browser) I am not sure username and password I stored in the Export Web Map Task in a custom toolbox will work for WMTS. I get error below trying to send map JSON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Executing: ExportWebMap " {"mapOptions":{"showAttribution":true,"extent":{"xmin":16055389.637985548,"ymin":-4594960.104620628,"xmax":16192976.288898917,"ymax":-4503235.670678381,"spatialReference":{"wkid":102100}},"spatialReference":{"wkid":102100},"scale":577790.5542889956}, "operationalLayers":[{"id":"layer0","title":"layer0","opacity":1,"minScale":591658710.9091313,"maxScale":564.2497164995802,"url":"&lt;SPAN style="color: #2873ee;"&gt;&lt;A href="https://somewmtsserver.com/WMTS" title="https://somewmtsserver.com/WMTS"&gt;&lt;SPAN style="color: #2873ee;"&gt;https://somewmtsserver.com/WMTS&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;","type":"wmts","layer":"cfm","style":"default","format":"image/png","tileMatrixSet":"XYZCompatible"},{"id":"mapDiv_graphics","opacity":1,"minScale":0,"maxScale":0,"featureCollection":{"layers":[]}}], "exportOptions":{"outputSize":[800,1100],"dpi":96}}" C:\Users\myname\Documents\ArcGIS\1bbb03a94e3a45e284f49fd83c94ebae.png PNG8 # MAP_ONLY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Start Time: Tue Sep 15 17:23:22 2015&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&lt;SPAN&gt;Layer "layer0": Failed to create layer from service at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fsomewmtsserver.com%2FWMTS" rel="nofollow" target="_blank"&gt;https://somewmtsserver.com/WMTS&lt;/A&gt;&lt;SPAN&gt; .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Client tried to access password-protected page without proper authorization.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Failed to execute (ExportWebMap).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Failed at Tue Sep 15 17:23:22 2015 (Elapsed Time: 0.36 seconds)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Has anyone managed to print secured WMTS layer using Export Web Map task? If so, what technique was used?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 07:50:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/print-map-with-secured-wmts-layer-using-export-web/m-p/121809#M4743</guid>
      <dc:creator>VishApte</dc:creator>
      <dc:date>2015-09-15T07:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Print map with secured WMTS layer using Export Web Map task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/print-map-with-secured-wmts-layer-using-export-web/m-p/121810#M4744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vish,&lt;/P&gt;&lt;P&gt;Storing credentials with the ExportWebMap Tool should work with non-Esri secured WMTS service too.&lt;/P&gt;&lt;P&gt;Could you pls try this in Desktop and have Fiddler (or some other tool) to check what is going on?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that does not help much, I'd suggest you to contact Esri Support and open an incident for further investigation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 16:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/print-map-with-secured-wmts-layer-using-export-web/m-p/121810#M4744</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2015-09-15T16:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Print map with secured WMTS layer using Export Web Map task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/print-map-with-secured-wmts-layer-using-export-web/m-p/121811#M4745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tanu for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did check using Fiddler and found ArcMap Export Web Map custom task made two identical requests to WMTS service's get capabilities. I expected second request to include "Authorization: Basic xxxxxxx" in header but found it missing. Both calls hade below request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&lt;SPAN&gt;GET &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN style="color: #e23d39;"&gt;wmtsserver&lt;/SPAN&gt;/WMTS/1.1.2?SERVICE=WMTS&amp;amp;VERSION=1.0.0&amp;amp;REQUEST=GetCapabilities HTTP/1.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Accept: */*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;User-Agent: ArcGIS Client Using WinInet&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Host: &lt;SPAN style="color: #e23d39;"&gt;wmtsserver&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Connection: Keep-Alive&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Cache-Control: no-cache&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did the same WMTS get capabilities request using browser (IE) and found two requests in fiddler. First one did not have authorization header but second one did after I provided username and password. See second request below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&lt;SPAN&gt;GET &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwmtsserver%2FWMTS%2F1.1.2%2F%3FSERVICE%3DWMTS%26VERSION%3D1.0.0%26REQUEST%3DGetCapabilities" rel="nofollow" target="_blank"&gt;https://wmtsserver/WMTS/1.1.2/?SERVICE=WMTS&amp;amp;VERSION=1.0.0&amp;amp;REQUEST=GetCapabilities&lt;/A&gt;&lt;SPAN&gt; HTTP/1.1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Accept: text/html, application/xhtml+xml, */*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Accept-Language: en-AU&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Accept-Encoding: gzip, deflate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Host: &lt;SPAN style="color: #e23d39;"&gt;wmtsserver&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Authorization: Basic xxxxxxxxxxxxxxxxxxxx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Connection: Keep-Alive&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;DNT: 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my guess is ArcMap tool is not able to understand 401 challenge to inject basic authorization header in subsequent call even though the tool has the url registered with username and password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 01:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/print-map-with-secured-wmts-layer-using-export-web/m-p/121811#M4745</guid>
      <dc:creator>VishApte</dc:creator>
      <dc:date>2015-09-16T01:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Print map with secured WMTS layer using Export Web Map task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/print-map-with-secured-wmts-layer-using-export-web/m-p/121812#M4746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vish.&lt;/P&gt;&lt;P&gt;Which version of ArcGIS Server you are using? Will I be able to access that service to repro that in house? I have a feeling that it got fixed recently...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 16:05:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/print-map-with-secured-wmts-layer-using-export-web/m-p/121812#M4746</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2015-09-16T16:05:53Z</dc:date>
    </item>
  </channel>
</rss>

