<?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: Newbie Question About Getting Service Information in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-question-about-getting-service-information/m-p/616726#M57641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;I have talked to my client and we will modify our requirements and settle with what we can get out using the first sample you directed me too.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;Cheers,&lt;BR /&gt;Paul&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad to help. Please feel free to get back if you have any further queries. Also dont forget to mark the thread as answered so it can help others in future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Manish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Oct 2013 16:42:03 GMT</pubDate>
    <dc:creator>ManishkumarPatel</dc:creator>
    <dc:date>2013-10-16T16:42:03Z</dc:date>
    <item>
      <title>Newbie Question About Getting Service Information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-question-about-getting-service-information/m-p/616721#M57636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We have decided to port our Silverlight API application to JavaScript.&amp;nbsp; I am starting to look at the API and I am trying to find out how I can query an ArcGIS server to find a list of services. I need to ask it to return only specific type of services. For example, I want to be able to get only a list of dynamic, tiled, WMS or WMTS one type at a time.&amp;nbsp; I was looking at what the REST API returns, but it does not tell me the type I want.&amp;nbsp; It only says "MapServer" as the type in the JSON I get back. Is there something in the API that will help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 11:09:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-question-about-getting-service-information/m-p/616721#M57636</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2013-10-16T11:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question About Getting Service Information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-question-about-getting-service-information/m-p/616722#M57637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;We have decided to port our Silverlight API application to JavaScript.&amp;nbsp; I am starting to look at the API and I am trying to find out how I can query an ArcGIS server to find a list of services. I need to ask it to return only specific type of services. For example, I want to be able to get only a list of dynamic, tiled, WMS or WMTS one type at a time.&amp;nbsp; I was looking at what the REST API returns, but it does not tell me the type I want.&amp;nbsp; It only says "MapServer" as the type in the JSON I get back. Is there something in the API that will help me?&lt;BR /&gt;Thanks,&lt;BR /&gt;Paul&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a similar requirement, working with JavaScript API and used the following workaround:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/bing/help/bingsamples/serviceinfo_discover_map.html" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/bing/help/bingsamples/serviceinfo_discover_map.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might have to modify the code a bit and you can pull up all the information as required. Let me know if you need any further help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Happy coding &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Manish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 13:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-question-about-getting-service-information/m-p/616722#M57637</guid>
      <dc:creator>ManishkumarPatel</dc:creator>
      <dc:date>2013-10-16T13:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question About Getting Service Information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-question-about-getting-service-information/m-p/616723#M57638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Manish,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just tried that code. It returns all the services recursively in all folders whatever their type.&amp;nbsp; It shows all services as having a type of "MapServer". I need to extract all dynamic services only or all tiled services only for example.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 13:59:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-question-about-getting-service-information/m-p/616723#M57638</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2013-10-16T13:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question About Getting Service Information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-question-about-getting-service-information/m-p/616724#M57639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Manish,&lt;BR /&gt;I just tried that code. It returns all the services recursively in all folders whatever their type.&amp;nbsp; It shows all services as having a type of "MapServer". I need to extract all dynamic services only or all tiled services only for example.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have the map service name, create the map server URL dynamically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for eg: if you have the map service name as &lt;/SPAN&gt;&lt;STRONG&gt;ESRI_Census_USA&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN&gt;then create the map service URL as below dynamically:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;var mapServURL = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer" rel="nofollow" target="_blank"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;use this for the get the details of the map service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; // send request for service information&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; agisve_services.GetResourceInfo(mapServURL , showMapServResourceInfo);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;function showMapServResourceInfo(MapServResourceInfo){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//this MapServResourceInfo object has the map service details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eg: MapServResourceInfo.singleFusedMapCache = false; //this means the map is dynamic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on the properties who want you can decide what to show or do with the map service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Manish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 16:05:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-question-about-getting-service-information/m-p/616724#M57639</guid>
      <dc:creator>ManishkumarPatel</dc:creator>
      <dc:date>2013-10-16T16:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question About Getting Service Information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-question-about-getting-service-information/m-p/616725#M57640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have talked to my client and we will modify our requirements and settle with what we can get out using the first sample you directed me too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 16:11:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-question-about-getting-service-information/m-p/616725#M57640</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2013-10-16T16:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question About Getting Service Information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-question-about-getting-service-information/m-p/616726#M57641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;I have talked to my client and we will modify our requirements and settle with what we can get out using the first sample you directed me too.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;Cheers,&lt;BR /&gt;Paul&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad to help. Please feel free to get back if you have any further queries. Also dont forget to mark the thread as answered so it can help others in future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Manish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 16:42:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-question-about-getting-service-information/m-p/616726#M57641</guid>
      <dc:creator>ManishkumarPatel</dc:creator>
      <dc:date>2013-10-16T16:42:03Z</dc:date>
    </item>
  </channel>
</rss>

