Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID
Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.

Xcode - iphone app and database connectivity

hajerhajer Posts: 1New Users
edited April 2012 in iPhone SDK Development
im new at programing iphone applications,so i need a step-by-step help through out this ..

now after i'm pretty much done with building the interfaces using Xcode 4, i also built a database using Visual Studio 2008 . i want to connect my application to that database using and SQL server 2008 as an intermediary web service between my application and database , the database i'll reserve a server later to put it on ..

my question is , for example i have a log in view where i ask the username and password , how can u use these info from Xcode and send it to the DB to verify it and back from the DB to view the appropriate app view ?


ur help will be v.much appreciated.
Post edited by hajer on

Replies

  • reficulreficul Posts: 185Registered Users
    edited April 2012
    hajer;426767 said:
    im new at programing iphone applications,so i need a step-by-step help through out this ..

    now after i'm pretty much done with building the interfaces using Xcode 4, i also built a database using Visual Studio 2008 . i want to connect my application to that database using and SQL server 2008 as an intermediary web service between my application and database , the database i'll reserve a server later to put it on ..

    my question is , for example i have a log in view where i ask the username and password , how can u use these info from Xcode and send it to the DB to verify it and back from the DB to view the appropriate app view ?


    ur help will be v.much appreciated.
    I don't know if this will be helpful but this is how me and my company does this (we have a web solution to our products so we can reach our web server with a URL like this www.myproduct.com):

    - In our web solution we have added a folder named mobile (www.myproduct.com/mobile) and added an empty page called for example mobileservices.aspx
    - In the cs.file connected to mobileservices.aspx we do our connections to the database and create the response to be returned to the caller based on the parameters sent
    - From our mobile devices we create the urls and sends them to the web server (a simple login url could be like this w w w . myproduct .com/mobile/mobileservices.aspx?operation=login&username=myusername&password=mypassword)
    - The web server checks the operation name and collects the other parameters and tries to login. If the user exists the web server creates a response with some info about the user. Otherwise it creates an error response
    - On the mobile devices we check the response from the web server and the user is allowed to login or is given an error

    The login example is not secure as the users password is sent in clear text but this is just an example.
    If you really want something in this life you have to work for it. Now quiet, they're about to announce the lottery numbers.



    Homer J Simpson
Sign In or Register to comment.