Dasa,Could you elaborate on including a WMS layer in the Operational Layers section of the config.xml file for Flex Viewer 2.2? The documentation does not have much detail.Specifically, I am attempting to add the hypsography layer from the Toporama Web Map Service (Toporama WMS) of the Earth Sciences Sector (ESS) at Natural Resources Canada (NRCan). See http://geogratis.cgdi.gc.ca/geogratis/en/service/toporama.html for information about this service.
<Layer queryable="0" opaque="0" cascaded="0">
<Name>hypsography</Name>
<Title>Hypsography</Title>
-
<Abstract>
The Hypsography layer represents elevation points and continuous lines formed by peaks of equal altitude used to describe the topography. Elevation of points and lines is always calculated from mean sea level.
</Abstract>
<SRS>EPSG:4269</SRS>
The layer line I have included in my config.xml is as follows:<layer label="Contours" type="wms" visible="true" visiblelayers="hypsography" url="http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en"/>Is there an option to set the WMS version in the layer line? An error message I get seems to indicate that FlexViewer defaults to version 1.3.0, but Toporama supports the OGC WMS standard, version 1.1.1.
SecurityError: Error #2048: Security sandbox violation: http://465793h/FlexViewer2.2/index.swf cannot load data from http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en?VERSION=1%2E3%2E0&REQUEST=GetCapabilities&SERVICE=WMS.
at Function/com.esri.ags.layers:WMSLayer/private:loadCapabilities/com.esri.ags.layers:myFaultFunction()
at mx.rpc::AsyncResponder/fault()
at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyFault()
at mx.rpc.events::FaultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at DirectHTTPMessageResponder/securityErrorHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/redirectEvent()
Additionally, is there a way to specify the EPSG code for the WMS in the layer line? This is not mentioned in the documentation. I suppose that "EPSG:900913 - Google Spheric Mercator", which is supported by Toporama, would match the ArcGIS Online cached services.