ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer newLayer = new ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer(); newLayer.Url = "http://dev9/arcgis/services/merged_soi1/MapServer/WMSServer"; newLayer.ID = "newLayer1"; newLayer.SkipGetCapabilities = true; MyMap.Layers.Add(newLayer);
You have to set the WMS.Layers property, which is required to get the layer displayed.
If you still run into problems after setting this property, try using fiddler to look at the requests sent to the server. That might give a clue about the issue.
But the dgn map is not visible or projected on the map.
Is this a problem with Projection system ..how do I address this issue..
Before publishing your mxd, you have to set the spatial reference of your dgn files
<esriWMS:WmsLayer ID="AGSWMSLayer" Url="http://dev9/arcgis/services/merged_soi1/MapServer/WMSServer" SkipGetCapabilities="False" Layers="1" Version="1.3" Opacity="0.7" />
Sorry, not sure I can help. I rarely published dgn files.
Nevertheless are you sure it's a WMS issue? Is it working when using the MapServer and an ArcGISMapServiceLayer?
My only clue about WMS: are you sure the layer "1" is the one containing the dgns?