Jon,WMS uses strings for layer names instead of numbers.
<layer label="Counties" type="wms" visible="false" visiblelayers="StockportWatershed:CountyBoundaries" url="http://donmeltz.dyndns.org:8080/geoserver/wms" skipgetcapabilities="true" version="1.1.1"/>
WMS is not supported in "ready to deploy" ArcGIS Flex Viewer 2.1. WMS support will be added to viewer in in future release.For list of supported layer types see: http://help.arcgis.com/en/webapps/flexviewer/help/Default.htm#CSHID=layer_tag.htm|StartTopic=layer_tag.htmIf you are working with the source, then you can take advantage of ArcGIS API for Flex 2.1 to add support for WMS see sample at: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=WMSand http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/WMSLayer.html
You need to add <httpproxy>proxy.ashx</httpproxy> to the root (like the title) of your config.xml to tell the Viewer what the url to the proxy is.You're also missing the 'h' in http in the url on your serverUrl in the proxy.config. You don't have to give it the full url. You can just use the start like this "http://services.azgs.az.gov/".
See the page in the TOC called "Using proxy" under the Concepts at:http://help.arcgis.com/en/webapps/flexviewer/help/index.html
Hi Paul,WMS is not supported in "ready to deploy" ArcGIS Flex Viewer 2.1. WMS support will be added to viewer in in future release.For list of supported layer types see: http://help.arcgis.com/en/webapps/flexviewer/help/Default.htm#CSHID=layer_tag.htm|StartTopic=layer_tag.htmIf you are working with the source, then you can take advantage of ArcGIS API for Flex 2.1 to add support for WMS see sample at: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=WMSand http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/WMSLayer.html
The Viewer doesn't support wms services yet. (The API does as of 2.1.)You can try using their ArcGIS REST service here instead:http://services.azgs.az.gov/arcgis/rest/services/OneGeology/AZGS_Arizona_Geology/MapServerYou'll need to use a proxy though since they don't have a cross domain policy file at:http://services.azgs.az.gov/crossdomain.xml
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.