laptop and a wrench

漏洞

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

上次发布: December 19, 2015 ArcGIS Runtime SDK
漏洞 ID 编号 NIM070102
已提交June 29, 2011
上次修改时间June 5, 2024
适用范围ArcGIS Runtime SDK
找到的版本Other
修正版本10.2
状态Fixed

解决办法

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

重现步骤

漏洞 ID: NIM070102

软件:

  • ArcGIS Runtime SDK

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项