<?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 wmsLayer 'onlineResource' Url problem when using proxy in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wmslayer-onlineresource-url-problem-when-using/m-p/1368929#M83319</link>
    <description>&lt;P&gt;I'm developing a webapp with vue and ArcGIS API for JavaScript 4.16 and have the following problem:&lt;/P&gt;&lt;P&gt;I create a wmsLayer with a resource that I call via a proxy (definition in Vue). This forwarding works so far and the Getcapabilities.xml is queried.&lt;BR /&gt;Correct Url:&lt;BR /&gt;&lt;A href="http://localhost:8080/mapserver/?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities&amp;amp;map=fledermaus_flugkorridore_vdc&amp;amp;crs=21781" target="_blank"&gt;http://localhost:8080/mapserver/?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities&amp;amp;map=fledermaus_flugkorridore_vdc&amp;amp;crs=21781&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Server Url that ist fowarded:&lt;BR /&gt;&lt;A href="https://mapserver.test.ch/cgi-bin/mapserv" target="_blank"&gt;https://mapserver.test.ch/cgi-bin/mapserv&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, I get an unspecific error in the map and the layer is not overlaid..&lt;BR /&gt;[esri.layers.WMSLayer] #load() Failed to load layer (title: 'Layer', id: 'ch.wsl.vdc.oei_Quartiere') TypeError: r is null&lt;/P&gt;&lt;P&gt;However, I have noticed that the OnlineResource is inserted incorrectly in Getcapabilities.xml, which presumably means that the layer cannot be loaded.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;GetCapabilities&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;Get&amp;gt;&amp;lt;OnlineResource xmlns:xlink="&lt;A href="http://www.w3.org/1999/xlink" target="_blank"&gt;http://www.w3.org/1999/xlink&lt;/A&gt;" xlink:href="&lt;A href="http://localhost:8080:8080/cgi-bin/mapserv?map=fledermaus_flugkorridore_vdc&amp;amp;amp" target="_blank"&gt;http://localhost:8080:8080/cgi-bin/mapserv?map=fledermaus_flugkorridore_vdc&amp;amp;amp&lt;/A&gt;;"/&amp;gt;&amp;lt;/Get&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;/GetCapabilities&amp;gt;&lt;/P&gt;&lt;P&gt;The class 'wmsLayer' is a blackbox for me. Someone any ideas..?&lt;BR /&gt;Thanks Christian&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 15:02:02 GMT</pubDate>
    <dc:creator>Ch_Schmid</dc:creator>
    <dc:date>2024-01-11T15:02:02Z</dc:date>
    <item>
      <title>wmsLayer 'onlineResource' Url problem when using proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wmslayer-onlineresource-url-problem-when-using/m-p/1368929#M83319</link>
      <description>&lt;P&gt;I'm developing a webapp with vue and ArcGIS API for JavaScript 4.16 and have the following problem:&lt;/P&gt;&lt;P&gt;I create a wmsLayer with a resource that I call via a proxy (definition in Vue). This forwarding works so far and the Getcapabilities.xml is queried.&lt;BR /&gt;Correct Url:&lt;BR /&gt;&lt;A href="http://localhost:8080/mapserver/?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities&amp;amp;map=fledermaus_flugkorridore_vdc&amp;amp;crs=21781" target="_blank"&gt;http://localhost:8080/mapserver/?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities&amp;amp;map=fledermaus_flugkorridore_vdc&amp;amp;crs=21781&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Server Url that ist fowarded:&lt;BR /&gt;&lt;A href="https://mapserver.test.ch/cgi-bin/mapserv" target="_blank"&gt;https://mapserver.test.ch/cgi-bin/mapserv&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, I get an unspecific error in the map and the layer is not overlaid..&lt;BR /&gt;[esri.layers.WMSLayer] #load() Failed to load layer (title: 'Layer', id: 'ch.wsl.vdc.oei_Quartiere') TypeError: r is null&lt;/P&gt;&lt;P&gt;However, I have noticed that the OnlineResource is inserted incorrectly in Getcapabilities.xml, which presumably means that the layer cannot be loaded.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;GetCapabilities&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;Get&amp;gt;&amp;lt;OnlineResource xmlns:xlink="&lt;A href="http://www.w3.org/1999/xlink" target="_blank"&gt;http://www.w3.org/1999/xlink&lt;/A&gt;" xlink:href="&lt;A href="http://localhost:8080:8080/cgi-bin/mapserv?map=fledermaus_flugkorridore_vdc&amp;amp;amp" target="_blank"&gt;http://localhost:8080:8080/cgi-bin/mapserv?map=fledermaus_flugkorridore_vdc&amp;amp;amp&lt;/A&gt;;"/&amp;gt;&amp;lt;/Get&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;/GetCapabilities&amp;gt;&lt;/P&gt;&lt;P&gt;The class 'wmsLayer' is a blackbox for me. Someone any ideas..?&lt;BR /&gt;Thanks Christian&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 15:02:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wmslayer-onlineresource-url-problem-when-using/m-p/1368929#M83319</guid>
      <dc:creator>Ch_Schmid</dc:creator>
      <dc:date>2024-01-11T15:02:02Z</dc:date>
    </item>
  </channel>
</rss>

