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!!