laptop and a wrench

Erro

User request for getting the actual description and serviceDescription properties from the AGSMapServiceInfo class.

Última Publicação: December 19, 2015 ArcGIS Runtime SDK
Número de ID do Erro NIM070102
EnviadoJune 29, 2011
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Runtime SDK
Versão encontradaOther
Versão Fixa10.2
StatusFixed

Solução Provisória

To fetch both the values without using the AGSMapServiceInfo class, follow this workaround:NSURL *url1= [NSURL URLWithString:@"<a href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/LandusePlanning/MapServer?f=json" target="_blank">http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/LandusePlanning/MapServer?f=json</a>"]; NSString *loc = [[[NSString alloc] initWithContentsOfURL:url1] autorelease]; SBJsonParser *parser = [[SBJsonParser alloc] init];NSDictionary *json = [parser objectWithString:loc]; NSLog(@"description:%@", [json valueForKey:@"description"]); //prints descriptionNSLog(@"service description:%@", [json valueForKey:@"serviceDescription"]); //prints service //description

Etapas para Reproduzir

ID do Erro: NIM070102

Software:

  • ArcGIS Runtime SDK

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download