PDA

View Full Version : Iphone App. + IIS database connection on web




hrithik123
Jul 7, 2010, 12:35 PM
how can i connect Iphone App. with IIS hosting database with live website?



Cromulent
Jul 7, 2010, 05:51 PM
how can i connect Iphone App. with IIS hosting database with live website?

Through an exposed web service is usually the most commonly used method.

Otherwise you need to find a C or Objective-C driver for whatever the database system the website is using, hope it will compile a static library for an ARM CPU and then link it in with your app and make the calls directly.

Personally I prefer the web service method. JSON works great for transmission of data between the iPhone and the website.

hrithik123
Jul 7, 2010, 11:22 PM
can you give me any example?

what i have to do is

register user threw iphone and when user login threw iphone or website same data they will see

can you give me the step

Cromulent
Jul 8, 2010, 01:08 AM
can you give me any example?

what i have to do is

register user threw iphone and when user login threw iphone or website same data they will see

can you give me the step

Just send some JSON data (or XML) as a POST method to some URL on the site that can handle it and then process said data in whatever language your website is written in.

hrithik123
Jul 8, 2010, 01:30 AM
Just send some JSON data (or XML) as a POST method to some URL on the site that can handle it and then process said data in whatever language your website is written in.

sorry to ask you again...i am confused..

can you give me any screen shot or some small tutorial ?

is json or xml use in IIS server?

or o i ave to us SQL?

Cromulent
Jul 8, 2010, 01:33 AM
sorry to ask you again...i am confused..

can you give me any screen shot or some small tutorial ?

is json or xml use in IIS server?

or o i ave to us SQL?

You have to send the data from the iPhone, process it in whatever language the website is in (ASP.NET?) and then store it in the database.

That potentially means you'll need to use three languages.

JSON and XML are perfectly fine to use with any modern web framework.

As for the rest you'll need to work it out. It is pretty straightforward though.

hrithik123
Jul 12, 2010, 07:34 AM
so i will able to data store using xcode to sql server with use of XML?

am i right?

shrtcrt
Jul 13, 2010, 12:57 AM
Hello,
Let me make a suggestion. From your responses it appears you need to understand how webservices work. I suggest you take a look at how to do that. There are many languages that you can use, .NET, PHP, Ruby, etc.

You have to expose data in XML or JSON, like others have said. Once you do that, your iPhone app can consume that data. From there, you can either just display it or save it to a data model in your app, see Core Data.

There is nothing built into IIS to do this automatically. IIS is a web server. A person requests a page and that data is returned. It is up to you, the programmer, to set that up. There are many tutorials available. If your web site is running on IIS, then most likely Microsoft.net is installed. You can visit Microsofts web site and download Visual Studio Express and create your web application and expose your data.

Start there and you will be able to accomplish what you are wanting to do.