Hi... I want to post data from Iphone to Sqlserver using WCF REST service.... In Iphone i have a dictionary(with 5 K-V pairs) & want to pass a single element of this dictionary (like Id )through webservice(Browser) ......& save all the other K-V pairs in Sqlserver corresponding to this Id using the method made in Wcf service. Plz Any help....................
+1
A:
Take a look at ASIHTTPRequest, which is a framework that makes it easy to issue POST requests to RESTful services.
EDIT
It looks like you have a JSON object. You can parse JSON into an NSDictionary
using json-framework
. There are numerous tutorials you can access through Google that explain how to parse JSON with json-framework
.
Once you have your NSDictionary
of key-value pairs, it is trivial to use ASIHTTPRequest to create a POST HTTP request. The code samples on ASIHTTPRequest's site explain how to create a POST request.
I'm not sure what WCF is, but so long as it understands POST requests, you should be able to use ASIHTTPRequest for talking with it.
Hope this helps.
Alex Reynolds
2010-07-30 11:23:37
Sorry ...but this will not solve my prblm at all.
2010-07-30 12:18:23
Can you edit your question to indicate what the exact problem is?
Alex Reynolds
2010-07-30 12:35:25
2010-08-02 04:54:08
2010-08-02 05:00:26