views:

53

answers:

1

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
Sorry ...but this will not solve my prblm at all.
Can you edit your question to indicate what the exact problem is?
Alex Reynolds