I have for example this REST service for which I can use a query to get features within a certain geometry:
https://geoservices.rijkswaterstaat.nl/arcgis2/rest/services/GDR/vaarweginformatie/FeatureServer/29/...
This way I get 179 records. It would be very nice if I could use this URL as the source of a layer file. So the layer file requests the data within a geometry and shows in this case only the 179 records.
The only thing that is possible now, is to connect to the ArcGIS Server, add the data and create a layer file. The problem with this however, is that I get all the data (1231 records), while I only need the data within a certain area.