Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What are the alternative of Web Services  RSS feed

 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

I am making an application in which I am sending data to a server to synchronize it.

I am making this application in Android.And their are basic operation of app like Insert,Update,Retrieve.

This application will have 40 user information stored on server and it will synchronise from there.

I want to know what are other possible solution without using Web Services?


Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, if you have an Android client talking HTTP to a web server that pretty much falls in the "Web Services" world. Insert, Update Retrieve are basically the RESTful architecture methods.

Alternatives to HTTP would include:
1. brew your own socket communication protocol
2. Java Message Service style server and clients
3. Use email for all messages

Bill
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A RESTful WS would be a good choice for this. In which way do you think it's suboptimal that you're looking for alternatives?
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Ulf.

Ok let me explain my application architecture
There is 80-90 users in application,with different level of authentication.Each user of Android app need to be connect with server(Login Verification).And then their is insert,get,update operation on app.Android client is HTTP depend.
Insertion,update,deletion will be on Server basis.

So I am using Web Services.
Which one is best SOAP or REST and a little explain why?


Thanks
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The default choice for a mobile app should be REST, simply because it is less hassle to implement (mobile SOAP stacks aren't as sophisticated as desktop SOAP stacks). Unless you have a compelling not to want to use REST (or to want to use SOAP), go with REST.

For security, you'll want to augment that with auth tokens, or OAuth, and SSL.
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok So in My Case all data will be stored on a Server.

I have one question in my mind.

I have 10-20 Android Phones.I am using one Computer as a Web Server.So How can i Test my application in this case?

let me clear How can i test/connect my android application on localhost with many android phones?

 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For testing I normally use the debug version of the app, which does a number of things differently than the release version - like using a different server, writing more output to the logcat, using a different mobile analytics account etc. I've set up the build system to do this automatically.

As to testing on different devices, there's no real substitute to the actual thing - you can set up different AVDs that emulate different Android versions, screen sizes etc., but an actual device might still throw exceptions that the emulator wouldn't. So the more actual devices you can use, the better.
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok thanks Ulf

This is my first project on Web Services

So I need to put all data like login detail,their task,their data on Web Server?

Which Web Server I should use Apache,GlassFish,Web Logic,JBoss?

 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I need to put all data like login detail,their task,their data on Web Server?

What you need to do depends on your requirements, about which we know just about nothing. Usually, user account details are stored in a DB or an LDAP repository.

Which Web Server I should use Apache,GlassFish,Web Logic,JBoss?

It sounds as if you plan on implementing the WS in Java. That means Apache alone won't do (and I hope you already know that, otherwise you have a long learning curve ahead of you). Any of the JEE servers you mentioned can host Java WS, although if you have none of them in place so far, I would advise to go with Apache Tomcat. You can use Tomcat directly, or front it with Apache; which approach makes more sense depends on the circumstances (about which, again, we know nothing).
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf,as usual for your support
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!