My Blog List

Thursday 27 September 2012

Posting JSON data to WCF REST from iPhone app

Hi,fellas
this is quick post related to posting JSON data to WCF REST web service from iphone or ipad application.


look at the code below








1. Construct your JSON NSString as



     NSString *jsonRequest=@"{\"user\":{\"EmailId\":\"bpsingh216@gmail.com\",\"Password\":\"pass\",\"UserRoleId\":2,\"UserDetails\":{\"FirstName\":\"bp\",\"FamilyName\":\"Singh\",\"CountryId\":1,\"StateId\":1,\"CityId\":2,\"ZipCode\":221712}}}";


2.Construct your url using NSURL
3.Create NSMutableURLRequest with url
4.Create NSData using jsonRequest.
4.set request method i.e. POST or GET
5.set value for Accept and Content-Type
6. set NSData as HTTPBody
7. Execute your request

Tuesday 25 September 2012

Light Design Tool out now

Hi, folks
It gives me immense pleasure to introduce new Light Design Tool android application which was the part of  Responsive Urban Lighting Research Program at Allborg University ,Denmark

Application user can design light behavior with this application and can schedule his/her design for specific date and lampost which are connected to the app will automatically appears in that way.It was my first freelance projet.Hit the below link for Application live functionality
https://dl.dropbox.com/u/2700192/Gl%20torv%202.mov





i will share some code for the same ..........