How to call a webservice from an iPhone app - iphone

I want to call a .net web service from an iPhone application. Like I want to call a web service with respect to name and display the history sent by the web service.
Can anyone help me with the tutorial or some code how to do this.

This question has been asked a lot of times here in SO, do a search, here is a link to one iPhone interaction with ASP.NET WebService
and another How to Fetch Data From a WebService in iPhone?

I use www.sudzc.com to consume a .NET web service in a native iPhone app.

Related

how to connect oracle database by using iphone webserives

1.How to connect oracle database by using iphone webservices?
2.I was developed an app for iPhone that services are interact with phpmyadmin database.
3.But i want to how to interact with oracle database. please provide services. how to
developer code in server?
you have to use the web services provide by the your php developers team they develop the response in XML or JSON format which you access in your app by using NSXML parser or JSON parsing.
First you want to create a web service for your application. You can use PHP for this purpose.
Then you can call that web service from your Objective-C code.
The below links will help.
a. You can refer to NSMutablerequest class reference for more information on creating a web service request.
b. You can refer this tutorial for creating a simple web service for an iOS application.

Lotus Native Application on iPhone

How can i make a lotus application an iPhone native apps?
For e.g: eLeave.
The submit or approve action button in the form was created using lotusscript. So how can it work in iOS ? I have no idea how can i extend my lotus application to an iPhone Native Apps. Someone had suggested to use either SOAP or REST via HTTP to communicate between iOS and domino. But i don't even know what can i do with SOAP in my apps.
Pls help.
The suggestions along the lines of SOAP or other HTTP-based access to the data are correct. Since you can't just port a Notes app to the iPhone (for a variety of reasons) or use the Notes Java API classes (since the iPhone doesn't have Java), some form of HTTP access is your best bet. Either traditional Domino web access via forms or XPages are most likely the best way to go, since then you can write your UI in Designer. If you don't want to or can't do that for whatever reason, you're on the hook for writing the UI for your iOS app separately and then connecting to Domino via Web Services or REST functionality.
SOAP Web Services are probably what you want. They have the advantage of being supported directly in Designer - you can create a Web Service Provider in LotusScript or Java in much the same way you would write an Agent or Script Library. You would have to write methods to access and update the data you want, but it would also mean you have full control over what happens. You could re-implement your form-submission code as a web service call that takes the changed data as parameters and then does whatever manipulation you want and creates/saves the document.
It does depend on the version of Lotus/Domino you are running. This could be a start XPages Mobile Controls I am not sure about the "native"here. This is XPages, web based.
Based on your comment, I know of one native application TSAzr. This application uses XPages as web-services on the domino server. A bit more info can be found here dominoGuru
Your follow-up suggests that a mobile-optimised web application will not cut it, and that you want a native application. This means writing a new iOS application, end of story. There are different ways to go about this of course—e.g. you could build a web app and then wrapper it using something like Appcelerator Titanium, or PhoneGap—but ultimately, you need to write something.
As #Jesse Gallagher has already stated, Notes applications can't be ported directly to an iOS device. Apart from anything else, a Lotus Notes client application is a proprietary data store (NSF) sitting within a C and C++-based client built and compiled for the relevant underlying platform (Win or OS X). There is no direct analogue for iOS other than re-coding your app (of course, you could re-use the existing Lotusscript business logic via web service calls, as detailed in earlier answers).

Web service integration with iphone

I want to create iphone native app. which will use web service.Could any one tell me how many languages is supported by apple for web service. And which the best in performance ??
Your web service implementation is completely independent from your iPhone native app. Apple does not care what language you implement your web service in.
However, your web service client (i.e.: your iPhone app) must be written in Objective-C.
Simple Object Access Protocol is a webservice multi-platform language, and its the default for web services.
In a SOA these problems are addressed. Because the need to communicate with services that are not in the same programming language is something that happens normally. And there appears the SOAP protocol to normalize it.
This is independent from your iPhone.

iphone connection with openerp

Greetings,
I am thinking of getting an application in iPhone to establish connection with a application server to collects its contact details and then sync it with our address book.
Anyone could direct me in the direction i have to take to achieve this target. And the things i have to look up.
You must, first of all, start with a XML-RPC library for iPhone. That is not implemented yet in the iOS core sdk. A good starting point is the open source application developed from wordpress that contain a xml-rpc library. Then you can play with the method from within this application, calling specific opener methods.
This is the link to download wordpress for iOS: http://ios.wordpress.org/development/
Someone is working on a mobile client for OpenERP, but I don't know if there are any plans for iPhone specifically.
If you want to build your own, I suggest you look at the OpenERP developer book's section on web services. You can send XML-RPC requests to the server to do anything the regular client can do. The XML-RPC layer is basically a wrapper around the ORM methods.

How can I use web services for iPhone?

How can i use web services and also connect to the server in iphone?
I can only offer some references here you might have probably Googled them yourself:
Toolkit for Web Service-Backed iPhone Apps
iPhone Programming Tutorial – Intro to SOAP Web Services
Creating an iPhone-based Web Service
Googled Results
I have heard good things about using JSON especially TouchJSON.
Also, here is a tutorial from MobileOrchard that uses JSON (but not TouchJSON).