aspose file tools*
The moose likes Web Services and the fly likes Help with SOAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Help with SOAP" Watch "Help with SOAP" New topic
Author

Help with SOAP

Charan Kumar Br
Greenhorn

Joined: Oct 24, 2011
Posts: 10
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,,,,,,
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Oct 24, 2011
Posts: 10
@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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Oct 24, 2011
Posts: 10
@Tim Moores,

hmmm okay..

I just wanted to communicate with remote database and receive some data. it has no complex data transfer..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with SOAP