1

My company has set-up a web-service to get and set user data using .NET.

I am required to use this service in my Android application. I am totally new to the concept of web-services and communication between the device and the server.

I downloaded the ksoap library jar file and referred it in my android project. What do I do next ? How do I set up the connection ? How do I exchange data ?

I saw a few tutorials but their coding is either incomplete or beyond my understanding. Can anyone provide me with a simple tutorial or a working code for the implementation of the service in my application ?

Thanks in advance.

3
  • 1
    you should first check what the .NET web service expects to receive and what it sends. It doesn't have to be soap. It could be a simple xml or something else. also there are other examples in this site: stackoverflow.com/questions/1048310/… Commented Jun 6, 2012 at 9:42
  • I clicked on the link in the service and I got this as the response. HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="w3.org/2001/XMLSchema-instance" xmlns:xsd="w3.org/2001/XMLSchema" xmlns:soap="schemas.xmlsoap.org/soap/envelope"> <soap:Body> <GetControlResponse xmlns="tempuri.org"> <GetControlResult> <Id>int</Id> <Belt>boolean</Belt> </GetControlResult> </GetControlResponse> </soap:Body> </soap:Envelope> Commented Jun 6, 2012 at 9:48
  • check this question you will find what you're looking for: stackoverflow.com/questions/1052300/… Commented Jun 6, 2012 at 9:59

1 Answer 1

2

You may have a look @ http://seesharpgears.blogspot.in/2010/11/basic-ksoap-android-tutorial.html

It pretty much explains the android part and interestingly it is talking to a .NET Webservice (You shouldn't ideally bother about the service though).

Hope it helps.

Sign up to request clarification or add additional context in comments.

2 Comments

Do I have to consider whether the data is being transferred through SOAP or XML... ? for eg, the first comment on the question.
Thanks a lot for the link. I finally did it! :D

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.