<?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: Caling a layer in Arcgis Javascript API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caling-a-layer-in-arcgis-javascript-api/m-p/653842#M60923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tracy,&lt;/P&gt;&lt;P&gt; Thanks for the reply.&lt;/P&gt;&lt;P&gt;I am sorry for writing Dynamic service ,its actually a tiled map service and I am calling it the way I mentioned above. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2015 14:04:08 GMT</pubDate>
    <dc:creator>ADITYAKUMAR1</dc:creator>
    <dc:date>2015-10-14T14:04:08Z</dc:date>
    <item>
      <title>Caling a layer in Arcgis Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caling-a-layer-in-arcgis-javascript-api/m-p/653838#M60919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Users,&lt;/P&gt;&lt;P&gt; I need to call a dynamic mapservice.&lt;/P&gt;&lt;P&gt;The parameter provided to me are &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 1415px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="96"&gt;Title&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="132"&gt;Map_Service_Name&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="649"&gt;Map_Service_Url&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="81"&gt;Is_Required&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="89"&gt;Service_Type&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="96"&gt;Purpose&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="54"&gt;Is_Print&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="131"&gt;Map_Service_Order&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="87"&gt;Is_Restricted&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2D GSI&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2D &lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmapserver.XXXXXX.com%2FArcGIS%2Frest%2Fservices%2FGXXXX2D_XXXX%2FXXXX" rel="nofollow" target="_blank"&gt;https://mapserver.XXXXXX.com/ArcGIS/rest/services/GXXXX2D_XXXX/XXXX&lt;/A&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Cached&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Seismic Query&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;How can I add the mapservice to my application?&lt;/P&gt;&lt;P&gt;If i add it with new esri.layers.ArcGISDynamicMapServiceLayer(layer url);&lt;/P&gt;&lt;P&gt;I get the following error. 401 Unauthorized&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{"currentVersion":10.2,"fullVersion":"10.2.0","soapUrl":"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmapserver.eXXXXXXX.com%2Farcgis%2Fservices" rel="nofollow" target="_blank"&gt;https://mapserver.eXXXXXXX.com/arcgis/services&lt;/A&gt;&lt;SPAN&gt;","secureSoapUrl":null,"authInfo":{"isTokenBasedSecurity":false}}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditya kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 13:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caling-a-layer-in-arcgis-javascript-api/m-p/653838#M60919</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2015-10-13T13:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Caling a layer in Arcgis Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caling-a-layer-in-arcgis-javascript-api/m-p/653839#M60920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to take the URL of the map service, paste in in a browser window and have some results returned.&amp;nbsp; &lt;SPAN style="line-height: 1.5;"&gt;If you get some sort of permission error, the service has been secured and won't be able to use it without some sort of authentication. &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;If you can't view its rest service endpoint, then you won't be able call the service in code either.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do see information about the service using the URL, then you have a syntax problem when constructing this layer.&amp;nbsp; If you post the lines of code, it will be easier for people to see where you might have a problem. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 21:20:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caling-a-layer-in-arcgis-javascript-api/m-p/653839#M60920</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-10-13T21:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Caling a layer in Arcgis Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caling-a-layer-in-arcgis-javascript-api/m-p/653840#M60921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tracy,&lt;/P&gt;&lt;P&gt; Thanks for the reply. When I paste the url in the browser I can easily see the data. But when I bring the same in my map its giving me error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var GSI_2D = new esri.layers.ArcGISTiledMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmapserver.xxxxx.xxxx.com%2FArcGIS%2Frest%2Fservices%2FGlobal%2Fxxxxxxx%2FMapServer" rel="nofollow" target="_blank"&gt;https://mapserver.xxxxx.xxxx.com/ArcGIS/rest/services/Global/xxxxxxx/MapServer&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{"opacity":1.0,"visible":true});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 05:33:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caling-a-layer-in-arcgis-javascript-api/m-p/653840#M60921</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2015-10-14T05:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Caling a layer in Arcgis Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caling-a-layer-in-arcgis-javascript-api/m-p/653841#M60922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You said you want to load a ArcGISDynamicMapServiceLayer, but in that example, you specify &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;ArcGISTiledMapServiceLayer.&amp;nbsp; Unless a service is published as tiled, you won't be able to create it that way.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 13:34:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caling-a-layer-in-arcgis-javascript-api/m-p/653841#M60922</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-10-14T13:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Caling a layer in Arcgis Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caling-a-layer-in-arcgis-javascript-api/m-p/653842#M60923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tracy,&lt;/P&gt;&lt;P&gt; Thanks for the reply.&lt;/P&gt;&lt;P&gt;I am sorry for writing Dynamic service ,its actually a tiled map service and I am calling it the way I mentioned above. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 14:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/caling-a-layer-in-arcgis-javascript-api/m-p/653842#M60923</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2015-10-14T14:04:08Z</dc:date>
    </item>
  </channel>
</rss>

