Get Fields Types of a map service layer  (AGSFeatureLayer)

Discussion created by marco.brugna on Aug 16, 2010
Latest reply on Aug 18, 2010 by marco.brugna

I'm looking for a way to get the fields types of a map service layer.
I've found inside the AGSFeatureLayer class (undocumented) that there are the properties that can solve my problem, but I don't know to use it.

I just want to read the types of the fields because I have to sum the numeric fields.
When I do a query task the resulting NSDictionary has all strings, but I know that some of them are numeric.

I have to do a url request to get the json representation of the layer? Or I can use the AGSFeatureLayer?