Click here to Skip to main content
11,411,494 members (65,312 online)
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.2K
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 213
1 Sergey Alexandrovich Kryukov 149
2 Sascha Lefévre 110
3 Dave Kreskowiak 90
4 RyanDev 75
0 Sergey Alexandrovich Kryukov 8,920
1 OriginalGriff 6,983
2 Maciej Los 3,430
3 Abhinav S 3,248
4 Peter Leow 3,059


Advertise | Privacy | Mobile
Web04 | 2.8.150414.5 | Last Updated 14 Mar 2013
Copyright © CodeProject, 1999-2015
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