stanislav.gusakov-esri-portugal-pt-esridist

Get all fields - how?

Discussion created by stanislav.gusakov-esri-portugal-pt-esridist on Mar 7, 2011
How can I get all service's fields (FIELDS listed on a webserver site) without performing a direct identify?... Which is the query / code? :S

[[dynLayer1 mapServiceInfo] layerInfos]; -> always empty.

Ok, using this code the service info is no longer empty.
But I still can't return the whole list of fields. Maximum I can get is the name of the service layer.

NSError *error = nil;
AGSMapServiceInfo *serviceInfo = [AGSMapServiceInfo mapServiceInfoWithURL:layer1url error:&error];

Outcomes