Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I'm fairly new to iOS development and it's dauting enough to learn Objective-C without having this much issues server side as well.
 
Basically, my app connects to a WCF web-service over an untrusted network (i.e. the internet), the data being exposed by my web service calls are of a rather sensitive nature, so I need my service to be secure.
 
So, the technology that I "want" to use, if it's even possible is as follows:
 
* WCF web service using sessions so that I don't need to authenticate per call (except the login method of course which will be set to isInitiating=true).
* All requests and responses to and from the WCF service should be in JSON format. (Because JSON is a breeze in iOS)
* All requests are POST requests. (This is working fine)
* Will ultimately be accessed via HTTPS.
 
I'm stuck at making a working WCF sessionful service using JSON format. I've googled my eyes out and there are a million different solutions and approaches of which I've not been able to get a single one to work.
 
The last service I made works when I connect to it via a C# project (with a designer added service reference). But it does not work using Fiddler with a request containing a json formatted body. Upon closer inspection, the C# solution sends it's request to my "JSON" wcf service in bloody XML (massively bloated and over size xml I might add), and the service accepts it, but why not my JSON formatted fiddler request? iOS as far as I know doesn't have something as nifty as "Add Service Reference", like .Net does, meaning I need my requests and responses to remain simple, that's why I'm opting for JSON.
 
At this stage I just need someone to tell me, "keep at it, but try this...", or "move on and try something else" (supporting solid reasons of course).
I already have a plan brewing to implement a custom-designed "stateless session" solution using the DB on the server, but I'd much rather not re-invent the wheel.
 
I've not added any code to my question because I firstly want to know if I'm heading in the right direction, at all. Once that is established, we can talk code and WCF config files etc etc.
 
If I can get this working it will be the highlight of my week, nay, my month!!
Posted 14-Mar-13 6:17am
MatthysDT6.3K
Edited 14-Mar-13 6:21am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,055
1 DamithSL 4,621
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,500
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 14 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100