serviceDescription on AGSMapServiceInfo

468
3
05-17-2011 05:20 AM
RemcoDolman
New Contributor
Hello everyone, I have a quick and probably easy to answer question for you.
For some reason this code:

NSURL *url = [NSURL URLWithString:@"http://14.123.128.120/ArcGIS/rest/services/IOS_Env/Tectoniek/MapServer"];
AGSMapServiceInfo *mapServiceInfo = [AGSMapServiceInfo mapServiceInfoWithURL:url error:&error];


does not fill the serviceDescription variable of the mapServiceInfo object, it does however successfully retrieve the name and layer of the service.
When I check the url in the browser it cleary has a serviceDescription. What am I doing wrong here?

(The URL given in the piece of code is not the real URL used, this is just about the code whether I'm missing something)
The server is version 10 SP2, the ArcGIS API for IOS used is 1.8 final.

Best regards,
Max
0 Kudos
3 Replies
DiveshGoyal
Esri Regular Contributor
This appears to be a bug. Thanks for reporting it.
0 Kudos
DiveshGoyal
Esri Regular Contributor
I spoke too soon. I was able to get it to work.

Are you sure you have initialized your error variable to nil?
NSError* error = nil;
0 Kudos
MichaelMurphy8
New Contributor
I hit the same issue in another function.  It seems like there's a few areas where you can actually pass-in an error (which makes no sense).  My guess, is that it's good practice to initialize any NSError objects to nil when using the ArcGIS API.
0 Kudos