Hi There
I have published data as Web Layer to Enterprise. I added publication as WMS.
The resulting WMS has a GetFeature Info property. The answer from the GetFeature Info is in plaintext
...%3A443%2Fhostingserver%2Fservices%2FMap4%2FMapServer%2FWMSServer%3FSERVICE%3DWMS%26VERSION%3D1.3.0%26REQUEST%3DGetFeatureInfo%26FORMAT%3Dimage%252Fpng%26TRANSPARENT%3Dtrue%26QUERY_LAYERS%3D0%26LAYERS%3D0%26FEATURE_COUNT%3D10%26INFO_FORMAT%3Dtext%252Fplain%26LANG%3Den%26I%3D50%26J%3D50%26CRS%3DEPSG%253A4326%26STYLES%3D%26WIDTH%3D101%26HEIGHT%3D101%26BBOX%3D46.93483778489869%252C6.97971737972145%252C46.952959328602205%252C6.997838923424961
Where can I set the GetFeature Info as HTML?
Best Regards
Nico
Looks like you need to add: info_format=text/html to the end of the request. See the doc below.
Hi George
Thanks for your quick reply. Is there a possibility to set this parameter when publishing a WMS? Or is it in the Server configuration?
I want to add the WMS to a map viewer with GetFeature Info as HTML and not plain text. The user should get a HTML table result when clicking a feature in the map.
It's your application that is requesting response in text/plain format.
ArcGIS Server supports multiple formats and these are advertised in the Capabilities file. For example, see this service and search for GetFeatureInfo. You do not need to make any changes to server or service configuration