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 8193953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:39:17+00:00 2026-06-07T04:39:17+00:00

I use KSOAP to access a webservice for my application. I use a SoapObject

  • 0

I use KSOAP to access a webservice for my application. I use a SoapObject to build the request and I got an strange response (in this case strange means not XML).

I’m new with KSOAP and I need to add some changes into an existing project built on KSOAP, so to avoid using it is not an option. The code is simple, and works, but I cannot manage to parse the response.

The code that use for this is:

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("PersonalID", "032676025");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
                SoapEnvelope.VER11);
        envelope.dotNet = true;
        envelope.setOutputSoapObject(request);
        HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);

try {
            androidHttpTransport.call(SOAP_ACTION, envelope);
            SoapPrimitive response = (SoapPrimitive) envelope.getResponse();
            Log.i("Webservice Output", response.toString());

            return response.toString();

        } catch (Exception e) {
            e.printStackTrace();
        }

The issue here is that I cannot find the XML that comes from my webservice as response. I need to get it and to parse it by myself.

The question is: how do I obtain from the objects used in the code above the XML response (as XML)?

Thank you.

  • 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-06-07T04:39:18+00:00Added an answer on June 7, 2026 at 4:39 am

    I found the solution:
    set androidHttpTransport.debug = true; before to make the WS call.

    After this, you may access the request and the response like this:

    String requestDump = androidHttpTransport.requestDump;
    String responseDump = androidHttpTransport.responseDump;
    
    Log.i("", "Requeste: " + requestDump);
    Log.i("", "Response: " + responseDump);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use ksoap to call a simple webservice. I followed this video
I have to access a existing SOAP webservice from an Android application. I have
I want to make a http request with android. is use this: void testHTTP()
Use case: I find a piece of code that I do not understand at
I use ksoap to connect to a soap web service. And get a Soapobject
i am using ksoap library to call webservice in android. i dont see request
Use case: 3rd party application wants to programatically monitor a text file being generated
I found tutorial to use kSOAP api to use SOAP webservice. Can anyone provide
My ksoap2 webservice and webService-client works well with HttpTransportSE. Now I want to use
I am trying to use a .NET service in Android Application using the ksoap2

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.