Bug: ArcMap Server does not return the envelope of a GET_FEATURES request
When making a GET_FEATURES request on an ArcMap Service and requesting the envelope (envelope = "true") the envelope is not returned for the target layer.
ArcMap Server is looking for the #SHAPE# field in the list of subfields of target layer in order to return the envelope.
Include the #SHAPE# field in the subfields of target layer in the GET_FEATURES request.
<BUFFER distance="0.1" bufferunits="miles">
<TARGETLAYER id="1" />
<SPATIALQUERY subfields="#SHAPE# NAME" />