jvillajosn

How can load wfs layers in ArcGIS Engine 10.1?

Discussion created by jvillajosn on Oct 15, 2012
Hi, I tried to get the capabilities a WFS service and use it for load a FeatureLayer with the WFS information for load in a AxMapControl, I use IWFSServer class for Get the capabilities of service, but I can´t get results.

            string wfsServerURL = @"http://services.nationalmap.gov/arcgis/services/geonames/MapServer/WFSServer?";

            IWFSServer wfsServer = new WFSServerClass();
            wfsServer.SetParameter("URL", wfsServerURL);
            string response = wfsServer.GetData(esriWFSHttpVerb.esriWFSGet, "GetCapabilities");


With this code an error is produced
Error Code : -2147418113
Message: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Source: ESRI.ArcGIS.GeoDatabaseDistributed

   at ESRI.ArcGIS.GeoDatabaseDistributed.WFSServerClass.GetData(esriWFSHttpVerb httpVerb, String request)



Is there another way to load WFS data in AxMapControl of ArcGIS Engine?

Jesús Villajos Novillo
Software engineer.

Outcomes