We got a COM object for our web applications. now we need to develop application for different mobile devices like IPhone, Android and windows mobile. what are the options out there ( rest server, soap serverice ) any idea.
I highly recommend sticking with a REST service using JSON or a very simple XML for mobile delivery due to the bandwidth considerations for mobile networks. SOAP is too expensive a protocol for efficient mobile data transfer. In the case of iPhone, you will be hard pressed to find a SOAP library available.
Related
What is mqtt and webRTC?
Where can I use them if I am developing a NATIVE mobile web application which supports voice and video chat?
You are comparing two different things.
MQTT is a messaging protocol for publish/subscribe that you could use to implement the communication between your native application and the back-end servers.
WebRTC is a standard that modern web browsers are beginning to support to allow a pure web application (HTML5/JavaScript/CSS3) to implement voice and video interaction without requiring any browser plugins (typically today such implementations require the use of Flash). Its worth pointing out that support in native browsers for webRTC is only now emerging (and still not supported on iOS). If you were developing a mobile web application you might choose to use webRTC to support voice and video in a platform independent way and then use MQTT over web sockets to implement the communications to the server.
Since you are developing a NATIVE mobile application, webRTC is not really relevant. As a native application you are not constrained by browser support.
I am wondering what would be the best way to transfering data from the server to the application.
I am comfortable with javascript so web app would be a good one for publishing websocket communication.
Sending a server data to the browser like safari is easy(web app).
But I am not sure I can send a received data from the browser to my application.
is anybody tried browser to application transfer?
if this is impposible, what do I need to publish websocket connection in ios native app or
hybrid app? I have almost zero knowledge about ios. can you guys suggest good tutorials
for ios and ios websocket?
Using WebSockets from Javascript it is easy to send data from the browser to the server:
ws.send(data).
WebSocket clients are also available in iOS. See this answer.
I am keen to get some apps built that can communicate with other devices/ web etc. i have played around with FTP and can get so far. But what is the best way to do this? We don't have any Servers with databases etc, but do have a site that we are currently uploading and downloading files to.
can anyone suggest a good/ better way to get the device to send/ receive files?
thanks
sam
If it's HTTP communication you're wanting to do, the simplest and most powerful tool is ASIHTTPRequest.
HTTP is the protocol your web browser uses to talk to web servers. If you have a site you're storing and downloading files at, it's almost certainly HTTP you're talking to it.
For iOS device to device communication one can use Bump API.
EDIT: I don't know of a generic framework for device <-> server communications, but having built applications that use web services of other providers like Yelp, Yahoo, Google Maps, I would say the way to go for this is to have REST based web services which exchange data in JSON format.
I am newbie for PhoneGap and our client's requirement is to access SOAP based web-service in iPhone using PhoneGap, basically accessing the web-service using javascript, any help would be appreciated.
calling a webservice with phonegap is the same than calling it directly from your browser (but you have to think about the same orign policy).
Some performance implications are here to consider was well because processing big chunks of xml in javascript on mobile phones might be slow. So you could use some kind of weserver to talk to the webservice end send some simplified json to your phone or you can take a look at this tutorial from ibm describing how to call a webservice directly from javascript:
http://www.ibm.com/developerworks/webservices/library/ws-wsajax/
as i know, call web service from mobile device just like call web service from out side of that web service. So we need cross domain.
To cross domain, we need the support from server side, such as: Jsonp or proxy
Do most of the popular iPhone apps that communicate with a back end Internet server communicate via web services? I was assuming this was the case.
Some apps I'm thinking about would be: Facebook, Bloomberg, NY Times, ESPN, etc.
Well a web service is just an API - Application Programming Interface
The apps you mentioned would probably all implement their own API for exchanging data between the client and the server so yeah, I would say the answer is yes. You can implement your own API via XML, JSON etc. You just need to define the protocol. You can implement existing concepts in your own apps. Have a look at the following:
REST
SOAP
JSON
Most of the Apps that I've written use web services of some sort, I prefer being RESTful, but I have been forced to use SOAP.