Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6955103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:41:36+00:00 2026-05-27T14:41:36+00:00

I need some advices. I’ve a WSDL and I need to call some services.

  • 0

I need some advices.
I’ve a WSDL and I need to call some services.

For you, What is the best way to callSOAP web service with Android?
I know that we can:

  • use the library Ksoap 2
  • create xml templates and send them by a simple http protocol.
  • Or i can do something like:

  public class AppelService {

private static final String NAMESPACE = "http://my-website.com"; private static final String URL = "http://mon-example-web-services/wsdl.WSDL"; private static final String SOAP_ACTION = "getWeather"; private static final String METHOD_NAME = "getWeather"; private String getWeather(String city) { try { SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("city", city); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport(URL); androidHttpTransport.call(SOAP_ACTION, envelope); } catch (Exception e) { Log.e("getWeather", "", e); } } }

From your own experience, what do you think is the best way to do it ?

any help is appreciated.
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:41:36+00:00Added an answer on May 27, 2026 at 2:41 pm

    I would definitely advocate using ksoap2-android libary. I have done this very research, and nothing beats using this library in terms of versatility.
    The code you have provided is ksoap2.

    From the ksoap2-android website:

    The ksoap2-android project provides a lightweight and efficient SOAP
    library for the Android platform.

    It is a fork of the kSOAP2 library that is tested with the Android
    platform in mind. It also has a bunch of more features and
    enhancements and takes in bug fixes and contributions and releases
    regularly. It is also easily available for Maven and Ant users alike.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this thing that i need to do and some advices will be
I am new to Android, and I need some advices for start up. I
I need to resize/crop images in different resolutions for Android App. I know, that
I don't even know what exactly should I ask, so I need mostly some
I need some guidance/advices from someone who has any ideea about custom jquery event.
this is not a question that has an exact answer but I need some
I need to execute some common code for several 'around' advices. So, I have
I have followed some advices I got here today and would need a bit
I need some advice regarding the handling of a Silverlight control that I need
Need some help or some advice with entity framework v4. As you already know,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.