Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-14-2008, 01:10 AM   #40 (permalink)
iphonedev99
New Member
 
Join Date: Oct 2008
Posts: 12
Question Can anyone run this web service code run for me?

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"}
)}
)}
)}
iphonedev99 is offline   Reply With Quote
 

» Advertisements
» Online Users: 369
18 members and 351 guests
acegames, ADY, apatsufas, BdR, catedawn, ChenXin, Darmanikles, dfvdan, gagack, georg8betx, iph_s, joeallenpro, MarkC, RoryHarvey, technovelty, thebinaryfamily, zacharyse, zbynda
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,875
Threads: 89,225
Posts: 380,699
Top Poster: BrianSlick (7,129)
Welcome to our newest member, georg8betx
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:04 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.