• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to implement ksoap webservices in Android Emulator?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want to access a remote DB2 database from Android Emulator.
Could any one tell me the detailed steps of implementing ksoap web services from Android Emulator?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The last entry in the sourceforge page for Ksoap was over 3 years ago.

If all you need to do is create a SOAP formatted request in some well documented format and read a SOAP formatted response you will be better off with a simpler approach.

What is the state of the documentation for the service you want to access?

Several years ago I helped a client set up a simple application for submitting data to a SOAP service by plugging a few variables into a text template and using standard Java net methods to send the request. MUCH simpler and faster than any SOAP toolkit.

Bill
 
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are no classes in Android library that help in consuming SOAP based web services. You can search this forum for similar discussions. It seems Google, is a proponent of REST based Webservices and I think it is justified given the constraints of a mobile device and overhead of XML processing in SOAP.

However, if SOAP is what you want then, according to me, you can either adapt KSOAP for Android
1. I believe Anddev.org has a tutorial that you might find interesting: KSOAP tutorial

or use the solution that Bill suggested in the last two lines of his post:

Several years ago I helped a client set up a simple application for submitting data to a SOAP service by plugging a few variables into a text template and using standard Java net methods to send the request. MUCH simpler and faster than any SOAP toolkit.


Get the WSDL file and generate request templates from it(using SOAPUI tool or sth similar). Insert place holders for values and replace them later from code by user-provided values(String.replaceAll()). Create a HttpPost instance and post this to the service End point using DefaultHttpClient class.
reply
    Bookmark Topic Watch Topic
  • New Topic