• Post Reply Bookmark Topic Watch Topic
  • New Topic

What are the ways that Java/Android Application can connect and Send Data with web server

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

I am making a application In Which I need to connectivity between java/android application and a Server where all data is stored.

I found two ways of doing it.
1)Using Web Services(SOAP,REST,RPC).
2)Writing a Script(java or php) in server side and connect that with dataserver.


I want to know is there any way that can be best in above two for connecting and synchronising data between java/android application and server.

I am making a MultiUser application for both Java and Android app.

User will be more than 5000 in multi-threaded both from web based and Android app based.


Help me to decide which one will be best

Thanks
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand the question. The #1 and #2 you described are not alternatives to one another - they go together. The WS would be implemented by a script (or whatever other term you want to use - JAX-RS/JAX-WS endpoint etc.). Where do you see differences?
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok Let me exaplin

1)When In first case I have connected a Web-APP(Java) Servlet that will connect with database and will receive request parameter from android app and make a JSON and it will send that data to android app and android app will parse it.But No Web Services is their

2)This is a Usual Web Services approach making SOAP or REST.

So is there any other approach so that I can connect JAVA web app with database and receive request from both Android and Java Web applications


Thanks
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A servlet like that *is* a web service. It is likely pretty close to being a REST implementation.

Web services -using whatever API- are the standard approach for mobile app/web app communication. If there is a particular reason you're looking for something else, you should state that reason.
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I Just want to know is there any way other than Web Services that android app can communicate with web server and send or retrieve data from server?

Or Web Services is only approach to exchange data with web/application server

Offcourse database is their which will store data

Thanks
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are all kinds ways two machines can communicate: mail, messaging, direct TCP connection, etc. None of these lend themselves well for the scenario you describe. If the question is caused merely by curiosity, then I advise to stop this line of inquiry and plan on implementing a WS of some form.
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok

I am going for Rest Web Services.Have read too much finally Rest Web Services is My Final Approach

Thanks ulf
like always
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!