Select to view content in your preferred language

Add WMS Service in flex Viewer

2180
1
11-23-2012 04:22 AM
francescodi_vito
Deactivated User
Hi guys i have a problem.
I have a WMS Service that has been published with a product of Intergrapfh.
This is the wms service:

http://xx.xxx.xxx.xx/reflector/service?map=mywms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabiliti...

and i add this service in flex viewer with this method. In config.xml i add the string
[HTML]
<layer label="NRCan" type="wms" skipgetcapabilities="true" version="1.1.0" wkid="102100"
                   url="http://xx.xxx.xxx.xx/reflector/service?map=mywms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabiliti..."
                   visible="true" visiblelayers="Satellite"/>
[/HTML]

but when i run the application the wms it's not visibile.
Any help is great
Thanks
Tags (2)
0 Kudos
1 Reply
BjornSvensson
Esri Regular Contributor
In config.xml i add the string
[HTML]
<layer label="NRCan" type="wms" skipgetcapabilities="true" version="1.1.0" wkid="102100"
                   url="http://xx.xxx.xxx.xx/reflector/service?map=mywms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities"
                   visible="true" visiblelayers="Satellite"/>
[/HTML]

...Any help is great


Did you look for tips at http://forums.arcgis.com/threads/29978-Adding-a-WMS-layer ? It has some NRCan examples...

Could you try with a straight API sample as in http://resources.arcgis.com/en/help/flex-api/samples/index.html#/WMS_Map/01nq00000046000000/

If you look at the capabilities file, does it have a layer called "Satellite"?

If you look at the capabilities file, does it support the projection that you are asking for - 102100?  If not, maybe try wkid="900913" as mentioned in the forum post above (if that's supported by your WMS server).

If this doesn't help, maybe share the capabilities file here.
0 Kudos