I would like to know how to use wms or wfs layers in the flexviewer ?
In the config.xml, do I have to write it as a basemap or operationnal layer ? how do I mention my WxS layer ?
<layer label="Cartographie des risques naturels et technologiques en Loiret" skipgetcapabilities="true" type="wms" visible="false" alpha="0.75" wkid="4326" version="1.1.1" visiblelayer="PPR_INONDATION_LOIRE_ALEA" url="http://cartorisque.prim.net/wms/45?" />
All the layers in your map should be using the same or equivalent wkids so you'll need to find a common wkid supported by all the layers in your map. If your other layers are cached using web mercator and this wms service only supports geographic, then you will not be able to use them together.Quote from Dasa (Flex API Team) here: