From: Krishna R. A. <kri...@ym...> - 2011-03-08 13:50:17
|
Hi All, I am requesting a WMS service to get feature info and would like to get the response as xml. I am using the following code to get feature info and getting html response always // set the options for getting the feature info OpenLayers.setProxyHost("/rs/gwtOpenLayersProxy?targetURL="); WMSGetFeatureInfoOptions wmsFeatOpt = new WMSGetFeatureInfoOptions(); wmsFeatOpt.setURL(config.getWmsURL()); wmsFeatOpt.setTitle("Get Feature Info"); wmsFeatOpt.setInfoFormat("text/xml"); wmsFeatOpt.setHover(true); wmsFeatOpt.setQueryVisible(true); WMSGetFeatureInfo info = new WMSGetFeatureInfo(wmsFeatOpt); info.addGetFeatureListener(new FeatureInfoListener()); map.addControl(info); info.activate(); I tried application/xml but still the same html response. How would I get a xml response ? Thank you, Krishna. |