我坚持使用 asihttprequest 将 json 字符串发送到我的 wcf REST Web 服务。这是我的代码
NSString *jsonString=@"{\"user\":{\"EmailId\":\"bpsingh216@gmail.com\",\"Password\":\"kiran@123\",\"UserDetails\":{\"FirstName\":\"Kiran\",\"LastName\":\"Kuyate\"}}}";
NSURL *url = [NSURL URLWithString:@"http://182.72.47.242:52/UserService/MemberSignUp"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request setRequestMethod:@"POST"];
[request addRequestHeader:@"Accept" value:@"application/json"];
[request addRequestHeader:@"content-type" value:@"application/x-www-form-urlencoded"];
[request appendPostData:[jsonString dataUsingEncoding:NSUTF8StringEncoding]];
[request setDelegate:self];
[request startAsynchronous];
谁能指导我,我在哪里做错了?