Get WFS capabilities

Discussion created by vickarasu on May 18, 2011

This is the firs time I have to work with a WFS (I have to connect my app to a WFS in ArcGIS server) and I found the IWFSServer Interface. I use this code to get the capabilities xml:

                IWFSServer pWFSServer = new WFSServerClass();
                string url = @"http://server/ArcGIS/services/map/MapServer/WFSServer";
                pWFSServer.SetParameter("URL", url);

                string respuesta = pWFSServer.GetData(esriWFSHttpVerb.esriWFSGet, "getcapabilities");

and I get this XML:

<ows:ExceptionReport version='1.1.0' language='en' xmlns:ows=''><ows:Exception exceptionCode='NoApplicableCode'><ows:ExceptionText>Xml Parsing failed.
Reason:Invalid at the top level of the document.


When I get the capabilities with IE Explorer or Firefox I get a correct XML, so I don´t know if I´m doing something wrong.

Sorry for my ignorance!Thanks a lot!