<?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: WMS Layer (OGC) non-GIS server. Need help. in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761074#M19423</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 am having issues trying to get WMS layers to display also. I have defined a test service using a Canada Lambert COnformal Conic (EPSG 102002) projection and enabled WMS for it. Then, in my Silverlight application, I try to add it to the map in code using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;case&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 2;"&gt;"wms"&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt; wmsLayer = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2;"&gt;WmsLayer&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;();
wmsLayer.Url = "&lt;A href="http://s5-bsc-ims2.nrn.nrcan.gc.ca/ArcGIS/services/testwms1/MapServer/WMSServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://s5-bsc-ims2.nrn.nrcan.gc.ca/ArcGIS/services/testwms1/MapServer/WMSServer&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;;
wmsLayer.ID = "Test WMS Service"&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;;
wmsLayer.Layers = new string[] { "0" };
&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;wmsLayer.Visible = &lt;SPAN style="color: #0000ff; font-size: 2;"&gt;true&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;;
wmsLayer.SkipGetCapabilities = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;;
wmsLayer.SupportedSpatialReferenceIDs= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;new &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;[] { 102002 };
wmsLayer.Version=&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 2;"&gt;"1.3.0"&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;layers.Add(wmsLayer);
&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;break&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;;
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Later in the code, the layers list is added to the map. In fiddler, when it tries to load the WMS service, I see the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN style="font-size:2;"&gt;GET /ArcGIS/services/testwms1/MapServer/WMSServer?SERVICE=WMS&amp;amp;REQUEST=GetMap&amp;amp;WIDTH=1071&amp;amp;HEIGHT=746&amp;amp;FORMAT=image/png&amp;amp;LAYERS=0&amp;amp;STYLES=&amp;amp;BGCOLOR=0xFFFFFF&amp;amp;TRANSPARENT=TRUE&amp;amp;VERSION=1.3.0&amp;amp;CRS=EPSG:0&amp;amp;BBOX=-3600246.41388271,-936638.5,4433553.57338271,4659267 HTTP/1.1
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This generates an error I can see in Fiddler because it is requesting the service using EPSG code 0 instead of 102002!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes" ?&amp;gt;&amp;lt;ServiceExceptionReport version="1.3.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd"&amp;gt;
&amp;lt;ServiceException code="InvalidCRS"&amp;gt;
Parameter 'crs' contains unacceptable value.
&amp;lt;/ServiceException&amp;gt;
&amp;lt;/ServiceExceptionReport&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, why is the application sending an EPSG code of 0 when I asked it to use 102002?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 08:21:08 GMT</pubDate>
    <dc:creator>PaulHuppé</dc:creator>
    <dc:date>2021-12-12T08:21:08Z</dc:date>
    <item>
      <title>WMS Layer (OGC) non-GIS server. Need help.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761070#M19419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="color: #008000; font-size: 4; font-family: Lucida Console;"&gt;&lt;SPAN style="color: #008000; font-size: 4; font-family: Lucida Console;"&gt;&lt;A href="http://myservername.mydomain.com:7575/index?SERVICE=WMS%26Version=1.1.1%26REQUEST=GetMap%26MAX_POINTS=19999%26POINT_SIZE=2%26TRANSPARENT=TRUE%26BGCOLOR=0xFFFFFF%26SRS=EPSG:3785%26BBOX=-15023663.0215838,2076168.20828584,-3997163.06927742,7007273.77701913%26FORMAT=image/png%26EXCEPTIONS=INIMAGE%26WIDTH=1127%26HEIGHT=504"&gt;http://myservername.mydomain.com:7575/index?SERVICE=WMS%26Version=1.1.1%26REQUEST=GetMap%26MAX_POINTS=19999%26POINT_SIZE=2%26TRANSPARENT=TRUE%26BGCOLOR=0xFFFFFF%26SRS=EPSG:3785%26BBOX=-15023663.0215838,2076168.20828584,-3997163.06927742,7007273.77701913%26FORMAT=image/png%26EXCEPTIONS=INIMAGE%26WIDTH=1127%26HEIGHT=504&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #008000; font-size: 4; font-family: Lucida Console;"&gt;How do I consume this WMS service in my silverlight app. i have visual studio 2010 and used esri's 2.2.0.629 version of silverlight?&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #008000; font-size: 4; font-family: Lucida Console;"&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;ESRI.ArcGIS.Client.Toolkit.DataSources.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 4; font-family: Lucida Console;"&gt;&lt;SPAN style="color: #2b91af; font-size: 4; font-family: Lucida Console;"&gt;WmsLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;wmsLayer4Lidar = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 4; font-family: Lucida Console;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt; ESRI.ArcGIS.Client.Toolkit.DataSources.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 4; font-family: Lucida Console;"&gt;WmsLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;();&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;�??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;wmsLayer4Lidar.Url = strURLAboveMentionedURL;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;myMap.Layers.Add(wmsLayer4Lidar);&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;it is throwing me a silverlight error after i add the layer - not at that statement - but later.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;try catch did not help me. so i went to the script debugger:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;errMsg "Unhandled Error in Silverlight Application &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;Code: 4004 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;Category: ManagedRuntimeError &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;Message: System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.XmlTextReaderImpl.Throw(Exception e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.XmlTextReaderImpl.ParseDocumentContent()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.XmlTextReaderImpl.Read()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.Linq.XDocument.Parse(String text)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer.client_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Net.WebClient.DownloadStringOperationCompleted(Object arg) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;Code: 4004 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;Category: ManagedRuntimeError &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;Message: System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.XmlTextReaderImpl.Throw(Exception e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.XmlTextReaderImpl.ParseDocumentContent()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.XmlTextReaderImpl.Read()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Xml.Linq.XDocument.Parse(String text)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer.client_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;at System.Net.WebClient.DownloadStringOperationCompleted(Object arg) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;" String&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;to begin with, an example to add a WMS with above format would be greatly appreciated in the silverlight samples page.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;i am planning to change the URL, break it up and assign appropriate values and then try to add to the map.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;in any case, examples or links to example would be great.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;thanks and regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;ravi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 21:47:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761070#M19419</guid>
      <dc:creator>Ravichandran_M_Kaushika</dc:creator>
      <dc:date>2011-12-14T21:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: WMS Layer (OGC) non-GIS server. Need help.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761071#M19420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's an example of using WMSLayer: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#WmsLayerSimple"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#WmsLayerSimple&lt;/A&gt;&lt;SPAN&gt;. Please follow these steps to troubleshoot the layer: &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx"&gt;http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx&lt;/A&gt;&lt;SPAN&gt;. Fiddler might be able to show which web request failed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 23:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761071#M19420</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-12-14T23:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: WMS Layer (OGC) non-GIS server. Need help.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761072#M19421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ms. Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;good morning.&amp;nbsp; sorry for the delay in replying to your post.&amp;nbsp; thanks a lot for the above links.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I got WMS to show up WITH difficulty.&amp;nbsp; WMS demo link did not say a few things clearly and I had to figure them out myself by trial and error.&amp;nbsp; some of&amp;nbsp; these could have been indicated in esri sample wms site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; even tho there was a sample code for http Handler.ashx, i did not need them for a WMS service 1.3.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; therefore, i did not have to declare a proxyURL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. SkipGetCapabilities flag did not mean a thing to code.&amp;nbsp; it worked both ways.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. I did not have specify image format.&amp;nbsp; it worked both ways.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;another annoying thing i found was WMS sample page needed a detailed description and it had little or none, where as other simpler example did not need much explanation and they had a detailed explanation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it is nothing against you - i thank you for trying to help me out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;happy new year and thank you for your time and ever willingness to help people like us.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ravi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;ESRI.ArcGIS.Client.Toolkit.DataSources.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 4; font-family: Lucida Console;"&gt;WmsLayer&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;wmsLayer4Lidar = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 4; font-family: Lucida Console;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt; ESRI.ArcGIS.Client.Toolkit.DataSources.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 4; font-family: Lucida Console;"&gt;WmsLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;();&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;�??&lt;BR /&gt;wmsLayer4Lidar.Url = &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 4; font-family: Lucida Console;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myServerName.myDomain.Com:7575/ok_sallisawcreek_2006" rel="nofollow" target="_blank"&gt;http://myServerName.myDomain.Com:7575/ok_sallisawcreek_2006&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 4; font-family: Lucida Console;"&gt;//&amp;amp;format=image/jpeg";&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;wmsLayer4Lidar.Version = &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 4; font-family: Lucida Console;"&gt;"1.3.0"&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;;&lt;BR /&gt;wmsLayer4Lidar.Opacity = 0.5;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 4; font-family: Lucida Console;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;wmsLayer4Lidar.Layers = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 4; font-family: Lucida Console;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 4; font-family: Lucida Console;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;[] { &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 4; font-family: Lucida Console;"&gt;"Points"&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt; };&lt;BR /&gt;wmsLayer4Lidar.ID = &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 4; font-family: Lucida Console;"&gt;"WMSLidarLayer"&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;; &lt;BR /&gt;wmsLayer4Lidar.SkipGetCapabilities = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 4; font-family: Lucida Console;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;;&lt;BR /&gt;wmsLayer4Lidar.SupportedSpatialReferenceIDs = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 4; font-family: Lucida Console;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 4; font-family: Lucida Console;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;[] { 3857 };&lt;BR /&gt;wmsLayer4Lidar.Visible = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 4; font-family: Lucida Console;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;;&lt;BR /&gt;wmsLayer4Lidar.InitializationFailed += &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 4; font-family: Lucida Console;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 4; font-family: Lucida Console;"&gt;EventHandler&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 4; font-family: Lucida Console;"&gt;EventArgs&lt;/SPAN&gt;&lt;SPAN style="font-size: 4; font-family: Lucida Console;"&gt;&amp;gt;(wmsLayer4Lidar_InitializationFailed);&lt;BR /&gt;Map.Layers.Add(wmsLayer4Lidar);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 15:21:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761072#M19421</guid>
      <dc:creator>Ravichandran_M_Kaushika</dc:creator>
      <dc:date>2012-01-03T15:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: WMS Layer (OGC) non-GIS server. Need help.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761073#M19422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your feedback. We are working on our documentation. You can find WMS properties here: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client.Toolkit.DataSources~ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer_properties.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client.Toolkit.DataSources~ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer_properties.html&lt;/A&gt;&lt;SPAN&gt;. Some properties (as you found) are optional.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 17:35:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761073#M19422</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-01-03T17:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: WMS Layer (OGC) non-GIS server. Need help.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761074#M19423</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 am having issues trying to get WMS layers to display also. I have defined a test service using a Canada Lambert COnformal Conic (EPSG 102002) projection and enabled WMS for it. Then, in my Silverlight application, I try to add it to the map in code using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;case&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 2;"&gt;"wms"&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt; wmsLayer = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2;"&gt;WmsLayer&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;();
wmsLayer.Url = "&lt;A href="http://s5-bsc-ims2.nrn.nrcan.gc.ca/ArcGIS/services/testwms1/MapServer/WMSServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://s5-bsc-ims2.nrn.nrcan.gc.ca/ArcGIS/services/testwms1/MapServer/WMSServer&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;;
wmsLayer.ID = "Test WMS Service"&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;;
wmsLayer.Layers = new string[] { "0" };
&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;wmsLayer.Visible = &lt;SPAN style="color: #0000ff; font-size: 2;"&gt;true&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;;
wmsLayer.SkipGetCapabilities = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;;
wmsLayer.SupportedSpatialReferenceIDs= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;new &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;[] { 102002 };
wmsLayer.Version=&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 2;"&gt;"1.3.0"&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;layers.Add(wmsLayer);
&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;break&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;;
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Later in the code, the layers list is added to the map. In fiddler, when it tries to load the WMS service, I see the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN style="font-size:2;"&gt;GET /ArcGIS/services/testwms1/MapServer/WMSServer?SERVICE=WMS&amp;amp;REQUEST=GetMap&amp;amp;WIDTH=1071&amp;amp;HEIGHT=746&amp;amp;FORMAT=image/png&amp;amp;LAYERS=0&amp;amp;STYLES=&amp;amp;BGCOLOR=0xFFFFFF&amp;amp;TRANSPARENT=TRUE&amp;amp;VERSION=1.3.0&amp;amp;CRS=EPSG:0&amp;amp;BBOX=-3600246.41388271,-936638.5,4433553.57338271,4659267 HTTP/1.1
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This generates an error I can see in Fiddler because it is requesting the service using EPSG code 0 instead of 102002!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes" ?&amp;gt;&amp;lt;ServiceExceptionReport version="1.3.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd"&amp;gt;
&amp;lt;ServiceException code="InvalidCRS"&amp;gt;
Parameter 'crs' contains unacceptable value.
&amp;lt;/ServiceException&amp;gt;
&amp;lt;/ServiceExceptionReport&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, why is the application sending an EPSG code of 0 when I asked it to use 102002?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:21:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761074#M19423</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2021-12-12T08:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: WMS Layer (OGC) non-GIS server. Need help.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761075#M19424</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 got something working. In my application, if I have a regular dynamic service using the same projection as the first layer and then add the WMS service after, it works and the WMS service shows up.&amp;nbsp; Before, my first service was not an EPSG 102002 service, but a modified Lambert projection.&amp;nbsp; Does it mean that I must absolutely have a service using the same projection as the WMS service as my first layer for WMS service to show up?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 12:21:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761075#M19424</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2012-02-03T12:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: WMS Layer (OGC) non-GIS server. Need help.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761076#M19425</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;Another thing I noticed, is that if you check the "Use layer names from the map document" for the WMS capabilities of the service and then try using the layer names instead of using the layer numbers, you get nothing back.&amp;nbsp; Why can't we use the layer names?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 13:30:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761076#M19425</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2012-02-03T13:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: WMS Layer (OGC) non-GIS server. Need help.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761077#M19426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;Another thing I noticed, is that if you check the "Use layer names from the map document" for the WMS capabilities of the service and then try using the layer names instead of using the layer numbers, you get nothing back. Why can't we use the layer names?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Forget about this post, I found my problem, it was a typo! It does work with layer names&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 13:38:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wms-layer-ogc-non-gis-server-need-help/m-p/761077#M19426</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2012-02-03T13:38:31Z</dc:date>
    </item>
  </channel>
</rss>

