is layerdefs parameter only for WMS MapServer services?

Discussion created by on Jun 26, 2014
Latest reply on Jun 27, 2014 by wju-esristaff
So according to this document ( there's a layerDefs parameter that can be appended to a WMS getMap that will filter your results.
Apparently this parameter only applies to MapServer services, though.  Because when I try it on my ImageServer service I get an error.
My url is:,25.9674163260731,-76.7324944072095,45.2375171362684&width=600&height=600&layerDefs={"USGS_Greenness":"Name='GREENNESS.GREENNESS_DAV_1'"}

My response is:
<ServiceExceptionReport version="1.1.1"><ServiceException code="InvalidFormat">
Can't parse XML request.

Can anybody confirm layerDefs doesn't work with ImageServer services?  Or if it is supposed to work, what does a valid request look like?

I've also tried defining and using an OGC dimension called "name".  Then my wms call looks like this:

But no matter what value I put in for dim_name I always get back the same image.

Any help you can provide on either parameter will be greatly appreciated.

Thank you.