<?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 Multiple Mapservers in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/multiple-mapservers/m-p/723722#M18553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a folder in my REST service that contains multiple mapservers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is there a way in Silverlight to count the mapservers in the folder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is there any way to loop through the folder and give the names&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of each of the mapservers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2011 07:37:29 GMT</pubDate>
    <dc:creator>PercyJackson</dc:creator>
    <dc:date>2011-08-29T07:37:29Z</dc:date>
    <item>
      <title>Multiple Mapservers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/multiple-mapservers/m-p/723722#M18553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a folder in my REST service that contains multiple mapservers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is there a way in Silverlight to count the mapservers in the folder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is there any way to loop through the folder and give the names&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of each of the mapservers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 07:37:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/multiple-mapservers/m-p/723722#M18553</guid>
      <dc:creator>PercyJackson</dc:creator>
      <dc:date>2011-08-29T07:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Mapservers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/multiple-mapservers/m-p/723723#M18554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use ArcGISDynamicMapServiceLayer as in this sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SubLayerList"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SubLayerList&lt;/A&gt;&lt;SPAN&gt;. You don't have to add this in your map, as long as you call layer.Initialize(), Initialized event should fire and you can access its sub layers then.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 17:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/multiple-mapservers/m-p/723723#M18554</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-08-29T17:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Mapservers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/multiple-mapservers/m-p/723724#M18555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The above code only allows you to get the layers within one mapservice, but not to tell you what services are available in the entire rest catalog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The API doesn't come with any classes for interrogating the services available at a REST endpoint out of the box. Luckily using DataContract and a WebClient it's pretty simple to write the code that does that type of webrequest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See the following MSDN article on how to handle JSON in Silverlight: &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/cc197957(v=vs.95).aspx"&gt;http://msdn.microsoft.com/en-us/library/cc197957(v=vs.95).aspx&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's another blog post that covers this: &lt;/SPAN&gt;&lt;A href="http://timheuer.com/blog/archive/2008/05/06/use-json-data-in-silverlight.aspx"&gt;http://timheuer.com/blog/archive/2008/05/06/use-json-data-in-silverlight.aspx&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To get the JSON version of a REST catalog, simply append ?f=json to the Url (or ?f=pjson if you want it nicely formatted while developing this)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 17:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/multiple-mapservers/m-p/723724#M18555</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2011-08-29T17:59:12Z</dc:date>
    </item>
  </channel>
</rss>

