Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-26-2009, 01:08 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 4
Default Native App for a Website

Hellooo, I'm new to the site and scrambled here in the hope I'd be able to find some help, or perhaps others in my situation.

Has anyone any experience with creating a native application that works, and communicates with a website's database? My aim is to create an application that replaces a web-app, including user log-ins and commenting - so there is communication with the central server.


I did find this thread;
http://www.iphonedevsdk.com/forum/ip...ve-webapp.html
But alas, it is empty


Any help, or anyone with some experience in this, would be greatly appreciated. I've just started looking at objective c so you'll have to excuse my inexperience
Outline is offline   Reply With Quote
Old 10-26-2009, 02:51 PM   #2 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 165
Default

I would suggest creating a webservice to process all your database interaction.

I am working on an app that stores much of it's data in a MSSQL DB and I use a C# .NET webservice to handle all my fetching and storing of data (go go linq2entities!). I use complex request and response objects to pass data back and forth, but I know many people who just use XML to encapsulate their data.
jonahgabriel is offline   Reply With Quote
Old 10-26-2009, 03:59 PM   #3 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 4
Default

Thanks jonah.

Is this concept often done/complex?
Whilst learning objective C I'm slightly worried than I've bitten off more than I can chew with this project.
Outline is offline   Reply With Quote
Old 10-26-2009, 05:06 PM   #4 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 165
Default

Quote:
Originally Posted by Outline View Post
Thanks jonah.

Is this concept often done/complex?
Whilst learning objective C I'm slightly worried than I've bitten off more than I can chew with this project.
Well, the app I am working on is my first iPhone app, but I am guessing that using a webservice tier to provide access to your DB is pretty common. The only other way I can think of would be to find some 3rd party DB library to talk to your mySQL or msSQL DB directly, however I am not sure how secure these methods are. With a webservice, you can get yourself a SSL cert and make sure all data going to and from your application is encrypted.
jonahgabriel is offline   Reply With Quote
Old 10-27-2009, 05:21 AM   #5 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 4
Default

See, the DB I'm connecting to is a client's and I think we would both prefer it if the connection was secure (the app will deal with users logging in and so on)

Are there any resources available on this?
Outline is offline   Reply With Quote
Old 10-27-2009, 07:46 AM   #6 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 4
Default

Apologies for the excessive posts, but I'm rather worried about this project and this site really seems the best source for helping me out!




What I'm wanting to do, is to create an application that will run alongside a website - matching your profile, allowing you to comment on the actual site whilst on the move (much like the Facebook application). I understand the advantages a web-app would have over a native app, but it is imperative it is a native application that does this. The database of the site is MS SQLServer, and the code base is asp.net (vb).

Now, after doing a bit of digging, I'm having trouble actually finding examples of this being done, and was hoping someone here would be able to help me/point me in the right direction/tell me to look elsewhere for my project. As I say, I'm new to objective C so ideally I need to look at resources rather than writing it from scratch myself.
Outline is offline   Reply With Quote
Old 10-27-2009, 11:13 AM   #7 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 165
Default

If you have a developer that can do asp.net, then a web service shouldn't be hard. On the iPhone side you will need to learn how to create a web service request, then you will need to parse the xml that comes back from the request.

Here is a link to a resource that will help you get started on the iPhone side.
jonahgabriel is offline   Reply With Quote
Reply

Bookmarks

Tags
app, native, web, website

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 248
23 members and 225 guests
ADY, Alsahir, beleg_1998, Dani77, diyora, FAED, fredidf, iDifferent, iph_s, JamesCahall, JasonR, mer10, prchn4christ, Rudy, smithdale87, Speed, spiderguy84, stekki, tgjorgoski, timle8n1, Touchmint, twerner, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,755
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:11 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0