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

  • Home
  • SEARCH
  • 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 6082317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:16:33+00:00 2026-05-23T11:16:33+00:00

I am new to android and confused with my web services. I am using

  • 0

I am new to android and confused with my web services. I am using the following java code to get the response in log cat. but I tried a lot to parse the data to show the response alert dialouge . but I am getting huge errors and even i don’t know which methods and classes should be used

if reponse is 1 then success
if response is 0 then try again

The question might be silly but this is the only site where the new learners are getting the responses. kindly consider my problem
someone plz help with the relevant code to parse the string value to show the “success” alert.

Help is always appreciated…

     request.addProperty("email", email);
        request.addProperty("contact", contact);
        request.addProperty("fname", fname);
        request.addProperty("lname", lname);
        request.addProperty("gender", gender);
        request.addProperty("dateofbirth", dob);
        request.addProperty("password", password);
        request.addProperty("latitude", "76");
        request.addProperty("longitude", "82");
        request.addProperty("device_id", "12345"); 

            aht.setXmlVersionTag("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); 
            aht.call(SOAP_ACTION, soapEnvelope);

            SoapObject resultsRequestSOAP = (SoapObject) soapEnvelope.bodyIn;
            Log.v("TAG", String.valueOf(resultsRequestSOAP));

This is the xml from which I m getting the logcat response.

 <?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
         xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05 /soap-envelope">
 <soap12:Body>
<RegisterUser xmlns="http://tempuri.org/">
  <email>string</email>
  <contact>string</contact>
  <fname>string</fname>
  <lname>string</lname>
  <gender>string</gender>
  <dateofbirth>string</dateofbirth>
  <password>string</password>
  <latitude>int</latitude>
  <longitude>int</longitude>                       
  <device_id>string</device_id>
</RegisterUser>
</soap12:Body>
</soap12:Envelope>

from this xml I should parse the result

    <?xml version="1.0" encoding="utf-8"?>
     <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
   <RegisterUserResponse xmlns="http://tempuri.org/">
     <RegisterUserResult>string</RegisterUserResult>
    </RegisterUserResponse>
  </soap12:Body>
  </soap12:Envelope>
  • 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-23T11:16:34+00:00Added an answer on May 23, 2026 at 11:16 am

    If your question is about parsing an XML, then you should check this link, it should help you understand how the parsing goes in Android and in Java in general. Hope this helps!

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

Sidebar

Related Questions

I am completely new to android, and pretty much a Java newb. I have
Firstly I am new to android and Java so this is a beginners question.
I’m new to Android development and am confused about how to accomplish what I’m
Firstly, I'm new to Android (so I apologize if this question is ignorant) but
I am getting confused with all the different terminology when using Android: Activity, Service...
I am new to android development and I was confused in how to implement
I'm fairly new to Android and I'm a little bit confused on when to
I'm new to Android app programming and started to read a book, but it
Hello Everyone I'm really new bee in android and for that I'm confused to
I'm currently using Monodroid to develop an android app. I'm rather new to phone

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.