I tried the Trilitech's code the following way but I couldn't get it run for me.
applicationDidFinishLaunching:
Code:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
NSArray *keys = [NSArray arrayWithObjects:@"UserName", @"Password", nil];
NSArray *objects = [NSArray arrayWithObjects:@"", @"", nil];
NSDictionary *params = [NSDictionary dictionaryWithObjects:objects forKeys:keys];
NSDictionary *wsResponse=[WebServices callRestService:@"GetGuid" :params];
NSString *responseString=[wsResponse objectForKey:@"string"];
[window makeKeyAndVisible];
}
From the above code the following line
NSDictionary *wsResponse=[WebServices callRestService:@"GetGuid"
arams];
returns
Quote:
Printing description of wsResponse:
<CFDictionary 0x460e80 [0xa08141a0]>{type = mutable, count = 1, capacity = 3, pairs = (
0 : <CFString 0x4614e0 [0xa08141a0]>{contents = "ReturnPackage"} = <CFDictionary 0x461080 [0xa08141a0]>{type = mutable, count = 2, capacity = 3, pairs = (
0 : <CFString 0x4614b0 [0xa08141a0]>{contents = "DataPackage"} = <CFDictionary 0x461420 [0xa08141a0]>{type = mutable, count = 1, capacity = 3, pairs = (
1 : <CFString 0xa081f990 [0xa08141a0]>{contents = "GUID"} = <CFString 0x461460 [0xa08141a0]>{contents = "2B55FEF3-78C8-4716-97F1-E0031012A470"}
)}
3 : <CFString 0x461320 [0xa08141a0]>{contents = "ErrorPackage"} = <CFDictionary 0x461010 [0xa08141a0]>{type = mutable, count = 4, capacity = 6, pairs = (
0 : <CFString 0x45a9d0 [0xa08141a0]>{contents = "Flag"} = <CFString 0x45a9e0 [0xa08141a0]>{contents = "False"}
3 : <CFString 0x461120 [0xa08141a0]>{contents = "Message"} = <CFString 0xa0825330 [0xa08141a0]>{contents = "OK"}
4 : <CFString 0x461250 [0xa08141a0]>{contents = "StackTrace"} = <CFString 0x4612b0 [0xa08141a0]>{contents = "N/A"}
6 : <CFString 0x4611b0 [0xa08141a0]>{contents = "AdditionalInfo"} = <CFString 0x461210 [0xa08141a0]>{contents = "N/A"}
)}
)}
)}
|