Skip to main content
Solved

Query layers from ArcGIS Server mapservice

  • April 28, 2020
  • 1 reply
  • 160 views

Need to query layers,Layer field attributes from an ArcGIS server mapservice after generating token from url (http://arcgisserver.com/arcgis/rest/services///MapServer/).Now I am struck at how to use generated token next for getting the layer related tables and attributes.Any help on how to use generated token.

Best answer by nielsgerrits

  • Add a FeatureReader.
  • Choose "Esri ArcGIS Server Feature Service" (yes I know, you wrote mapservice, but it works)
  • Enter mapservice url (like https://myarcgisserver.com/arcgis/rest/services/a/b/MapServer)
  • Hit parameters, choose provide token, select attribute with token.
  • Select the layer(s) at FeatureTypes To Read. (You now have to copy paste a valid token to scan the mapservice for layers.)

Tip: I always choose "Single Output Port" over "One per Feature Type" and use an AttributeExposer to Expose attributes. (you can import them instead of entering manually). If you don't, you need to provide a new valid token every single time you make a change in the FeatureReader.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

nielsgerrits
VIP
Forum|alt.badge.img+61
  • Best Answer
  • April 28, 2020
  • Add a FeatureReader.
  • Choose "Esri ArcGIS Server Feature Service" (yes I know, you wrote mapservice, but it works)
  • Enter mapservice url (like https://myarcgisserver.com/arcgis/rest/services/a/b/MapServer)
  • Hit parameters, choose provide token, select attribute with token.
  • Select the layer(s) at FeatureTypes To Read. (You now have to copy paste a valid token to scan the mapservice for layers.)

Tip: I always choose "Single Output Port" over "One per Feature Type" and use an AttributeExposer to Expose attributes. (you can import them instead of entering manually). If you don't, you need to provide a new valid token every single time you make a change in the FeatureReader.