0
我正在以'GET'類型的JSON的形式使用安寧的WCF服務。 我想知道如何使用'POST'類型的服務,以便我可以發送大量數據。如何在iphone中使用post type restful wcf服務?
這裏是我的類型「GET」代碼:
NSURL *jsonURL = [NSURL URLWithString:[NSString stringWithFormat:@"http://www.xxx.com /coffeeiphone/Service.svc/maintransactioninsert/%@/%@/%@",stockid,[format stringFromDate:selected],[quantity text], nil]];
NSString *jsonData = [[NSString alloc] initWithContentsOfURL:jsonURL];
[POST REST-Web-Service Call for iPhone application]的可能重複(http://stackoverflow.com/questions/2568426/post-rest-web-service-call-for-iphone-application) – 2011-05-21 05:58:25
i想要用於json格式 – user746909 2011-05-21 07:56:42