<?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: ExportWebMap with Secured Services in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exportwebmap-with-secured-services/m-p/272469#M25134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;...Both of those are awfully complex workarounds for something that REALLY should be a part of the platform.&lt;BR /&gt;&lt;BR /&gt;I really hope somebody has been able to use the JSAPI's PrintTask to print a layer from a secured service.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure if you've seen it, but there is a help topic in the server help that talks about "Printing maps that contain secured services":&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Printing_maps_that_contain_secured_services/0154000005q3000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/Printing_maps_that_contain_secured_services/0154000005q3000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2014 22:16:49 GMT</pubDate>
    <dc:creator>BjornSvensson</dc:creator>
    <dc:date>2014-05-14T22:16:49Z</dc:date>
    <item>
      <title>ExportWebMap with Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exportwebmap-with-secured-services/m-p/272467#M25132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having trouble using the Print service with services that are secured. When the service is not secure, everything works great. When the service is secure, the widgets work great, and the proxy functions as expected. But, the printing fails. The printing GP service gives me an error that a token is required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've create a duplicate of the built-in service, since we define our own templates. My proxy works, so I know that's not the problem. The ExportWebMap service also fails when using the REST API, so that rules out any problem with the JavaScript widgets. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I read somebody say that it matters what account the Print service runs under, because that account needs permission to access the service. But, I don't really understand what that means. But, it seems like the GP service needs to authenticate, or somehow provide a token, or somehow use the proxy. (The exported webmap json doesn not have they proxy in the service URL's)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm about to lose it. Does anybody have any other thoughts on what I might try next?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 20:07:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exportwebmap-with-secured-services/m-p/272467#M25132</guid>
      <dc:creator>deleted-user-Jie3eyjOl9XM</dc:creator>
      <dc:date>2014-05-13T20:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: ExportWebMap with Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exportwebmap-with-secured-services/m-p/272468#M25133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the REST API, ExportWebWap accepts a token for each operational layer. That's the real problem here. Link to docs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/02r3/02r3000001mz000000.htm"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/02r3/02r3000001mz000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the json created by the PrintTask widget does not include a token. That makes sense because we are using a proxy page, the proxy page generates the short-lived token.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The new Resource Proxy (&lt;/SPAN&gt;&lt;A href="https://github.com/Esri/resource-proxy"&gt;https://github.com/Esri/resource-proxy&lt;/A&gt;&lt;SPAN&gt;) will accept a single token, and pass it along with the request. But, of course, it will not drill into the WebMapAsJson to include the appropriate token for any layer that matches all the proxy rules. That would be unreasonably complex. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, here are two (terrible) workarounds:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Use JavaScript to get a short-lived token from the proxy, manually build the WebMapAsJson, perhaps extending PrintTask.prototype._getPrintDefinition, to include that token.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Create a Python script that accepts the WebMapAsJson, mangles it to include the token, then uses ArcPy.mapping to call ExportToPDF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Both of those are awfully complex workarounds for something that REALLY should be a part of the platform.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really hope somebody has been able to use the JSAPI's PrintTask to print a layer from a secured service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 11:21:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exportwebmap-with-secured-services/m-p/272468#M25133</guid>
      <dc:creator>deleted-user-Jie3eyjOl9XM</dc:creator>
      <dc:date>2014-05-14T11:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: ExportWebMap with Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exportwebmap-with-secured-services/m-p/272469#M25134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;...Both of those are awfully complex workarounds for something that REALLY should be a part of the platform.&lt;BR /&gt;&lt;BR /&gt;I really hope somebody has been able to use the JSAPI's PrintTask to print a layer from a secured service.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure if you've seen it, but there is a help topic in the server help that talks about "Printing maps that contain secured services":&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Printing_maps_that_contain_secured_services/0154000005q3000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/Printing_maps_that_contain_secured_services/0154000005q3000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 22:16:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exportwebmap-with-secured-services/m-p/272469#M25134</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2014-05-14T22:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: ExportWebMap with Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exportwebmap-with-secured-services/m-p/272470#M25135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Not sure if you've seen it, but there is a help topic in the server help that talks about "Printing maps that contain secured services":&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Printing_maps_that_contain_secured_services/0154000005q3000000/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/Printing_maps_that_contain_secured_services/0154000005q3000000/&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for that link, Bjorn. I had seen that before, I went through it, and that's what got me rolling in the beginning. But, my secured services were still not working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After your suggestion, I went back to the help, and banged my head to see what was wrong. The problem was the connections that I was using to connect to the secured services. Get ready for it...&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;The URL for the connection must precisely match the URL in the webmap json.&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Duh? Yes, but in our case, we are using subdomains. So, if the connection is set to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://subdomain1.myserver.com/argis" rel="nofollow" target="_blank"&gt;http://subdomain1.myserver.com/argis&lt;/A&gt;&lt;SPAN&gt; but the webmap json points to a service at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://subdomain2.myserver.com/arcgis" rel="nofollow" target="_blank"&gt;http://subdomain2.myserver.com/arcgis&lt;/A&gt;&lt;SPAN&gt; then you will not get a match. If the connection is set to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://someservername/arcgis" rel="nofollow" target="_blank"&gt;http://someservername/arcgis&lt;/A&gt;&lt;SPAN&gt; but the webmap json points to a service at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://subdomain1.myserver.com/argis" rel="nofollow" target="_blank"&gt;http://subdomain1.myserver.com/argis&lt;/A&gt;&lt;SPAN&gt; then you will not get a match.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since we have about 100 subdomains, it's impractical to create 100 connection in ArcCatalog for the Print toolbox. My solution was to create the connection with the server name like &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://someservername/arcgis" rel="nofollow" target="_blank"&gt;http://someservername/arcgis&lt;/A&gt;&lt;SPAN&gt;. Then, add a preRequestCallback that changed any subdomain to the server name:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;if (ioArgs &amp;amp;&amp;amp; ioArgs.content &amp;amp;&amp;amp; ioArgs.content.Web_Map_as_JSON) { &amp;nbsp;&amp;nbsp;&amp;nbsp; var webmapJson = dojo.fromJson(ioArgs.content.Web_Map_as_JSON); &amp;nbsp;&amp;nbsp;&amp;nbsp; if (webmapJson.operationalLayers.length) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrayUtils.forEach(webmapJson.operationalLayers, function (lyr) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (lyr.url) { &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; try { &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var reString = '[a-z]+.myserver.com'; &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var re = new RegExp(reString, "g"); &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var newUrl = lyr.url.replace(re, 'someservername'); &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr.url = newUrl; &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; } &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; catch (e) { &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(e); &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; } &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;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, this); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ioArgs.content.Web_Map_as_JSON = dojo.toJson(webmapJson); &amp;nbsp;&amp;nbsp;&amp;nbsp; } }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran into this same problem using the new JS API resource proxy. Currently, the proxy does not support wildcard subdomains. So, I had to create an entry for each subdomain in the proxy config. That wasn't a big deal for a text file, but much harder in ArcCatalog. So, wildcard subdomains would a nice addition here, too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 11:02:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exportwebmap-with-secured-services/m-p/272470#M25135</guid>
      <dc:creator>deleted-user-Jie3eyjOl9XM</dc:creator>
      <dc:date>2014-05-19T11:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: ExportWebMap with Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exportwebmap-with-secured-services/m-p/272471#M25136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks for that link, Bjorn. I had seen that before, I went through it, and that's what got me rolling in the beginning. But, my secured services were still not working.&lt;BR /&gt;&lt;BR /&gt;After your suggestion, I went back to the help, and banged my head to see what was wrong. The problem was the connections that I was using to connect to the secured services. Get ready for it...&lt;BR /&gt;&lt;STRONG&gt;The URL for the connection must precisely match the URL in the webmap json.&lt;/STRONG&gt;&lt;BR /&gt;Duh? Yes, but in our case, we are using subdomains. So, if the connection is set to &lt;A href="http://subdomain1.myserver.com/argis" rel="nofollow noopener noreferrer" target="_blank"&gt;http://subdomain1.myserver.com/argis&lt;/A&gt; but the webmap json points to a service at &lt;A href="http://subdomain2.myserver.com/arcgis" rel="nofollow noopener noreferrer" target="_blank"&gt;http://subdomain2.myserver.com/arcgis&lt;/A&gt; then you will not get a match. If the connection is set to &lt;A href="http://someservername/arcgis" rel="nofollow noopener noreferrer" target="_blank"&gt;http://someservername/arcgis&lt;/A&gt; but the webmap json points to a service at &lt;A href="http://subdomain1.myserver.com/argis" rel="nofollow noopener noreferrer" target="_blank"&gt;http://subdomain1.myserver.com/argis&lt;/A&gt; then you will not get a match.&lt;BR /&gt;&lt;BR /&gt;Since we have about 100 subdomains, it's impractical to create 100 connection in ArcCatalog for the Print toolbox. My solution was to create the connection with the server name like &lt;A href="http://someservername/arcgis" rel="nofollow noopener noreferrer" target="_blank"&gt;http://someservername/arcgis&lt;/A&gt;. Then, add a preRequestCallback that changed any subdomain to the server name:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
if (ioArgs &amp;amp;&amp;amp; ioArgs.content &amp;amp;&amp;amp; ioArgs.content.Web_Map_as_JSON) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var webmapJson = dojo.fromJson(ioArgs.content.Web_Map_as_JSON);
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (webmapJson.operationalLayers.length) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrayUtils.forEach(webmapJson.operationalLayers, function (lyr) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (lyr.url) {
&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; try {
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var reString = '[a-z]+.myserver.com';
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var re = new RegExp(reString, "g");
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var newUrl = lyr.url.replace(re, 'someservername');
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr.url = newUrl;
&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; }
&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; catch (e) {
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(e);
&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; }
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, this);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ioArgs.content.Web_Map_as_JSON = dojo.toJson(webmapJson);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&lt;/PRE&gt;&lt;BR /&gt;I ran into this same problem using the new JS API resource proxy. Currently, the proxy does not support wildcard subdomains. So, I had to create an entry for each subdomain in the proxy config. That wasn't a big deal for a text file, but much harder in ArcCatalog. So, wildcard subdomains would a nice addition here, too.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nice workaround, thanks for sharing your code. I'm also wondering what your work needs 100+ subdomains for?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:18:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exportwebmap-with-secured-services/m-p/272471#M25136</guid>
      <dc:creator>GISDev1</dc:creator>
      <dc:date>2021-12-11T13:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: ExportWebMap with Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exportwebmap-with-secured-services/m-p/272472#M25137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've created a basic proxy that will insert tokens into the webmap_as_json request parameter. It's using NancyFx and the code is on &lt;A href="https://github.com/davetimmins/Joosh/tree/master/Joosh.Proxy"&gt;GitHub &lt;/A&gt;if you want to take a look.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 00:30:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exportwebmap-with-secured-services/m-p/272472#M25137</guid>
      <dc:creator>DaveTimmins</dc:creator>
      <dc:date>2014-07-09T00:30:15Z</dc:date>
    </item>
  </channel>
</rss>

