Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Help with SOAP  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello members,

I am beginner to SOAP and XML. I am developing an android app. I need my app to communicate with the remote database.

please help me how to connect with remote database and transfer data.


waiting,,,,,,
 
Saloon Keeper
Posts: 5404
143
Android Firefox Browser Mac OS X Safari Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A couple of points: Firstly, you can't communicate with a DB, you need an intermediate server that is accessible via HTTP. That server in turn will communicate with the DB.

Secondly, why do you want to use SOAP? For a mobile device, it would be much more common to use REST. Android has the excellent HttpClient library built in which makes that pretty easy. You can use a library such as Jersey on the server.

It's pretty easy to find example code of Android apps using REST to communicate with servers on the web. Just ask Google :-)
 
Charan Kumar Br
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Tim Moores,

Thanks for your feedback.

Which is the best server to communicate? I thought of using IBM Websphere Application Sphere(WAS). Is that good? Or any recommendation???
 
Tim Moores
Saloon Keeper
Posts: 5404
143
Android Firefox Browser Mac OS X Safari Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's impossible to make a recommendation without knowing a whole lot more about what you intend to do. If a REST server is all, then a servlet engine like Tomcat should be sufficient. WAS would work as well, though.
 
Charan Kumar Br
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Tim Moores,

hmmm okay..

I just wanted to communicate with remote database and receive some data. it has no complex data transfer..
 
Watchya got in that poodle gun? Anything for me? Or this tiny ad?
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!