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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:30:25+00:00 2026-06-18T20:30:25+00:00

I am using ksoap2 in order to extract an array of strings from a

  • 0

I am using ksoap2 in order to extract an array of strings from a wsdl based webservice(for an android app). How do I process the returned array? I need those 3-4 lines of code which will let me save and use that returned array in my class. 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-06-18T20:30:27+00:00Added an answer on June 18, 2026 at 8:30 pm
    String r = NameArray.columncount("userid", limitstart, loadNumber,loggername);
    String temp = r.replaceAll(";\\s", ",").replaceAll("string=", " ")
                    .replace("anyType{", "").replace(",}", "");
    String[] fulname = temp.split(",\\s+");
    

    ‘NameArray.columncount’ is my function which gets the array from the wsdl(don’t get confused in that)

    step 1-
    Here I am getting the array values returned from the wsdl in to a string called ‘r’.In this case I am getting an array of numbers
    Returned array string r looks like this

    r =”anyType{string=10054; string=10055; string=10056; string=10035; string=10052; string=10036; string=10037; string=10038; }”

    step 2-
    Then creating a String variable called temp where I am removing all the unwanted characters using the replaceAll function.
    after removing unwanted characters temp looks like this

    temp=”10054, 10055, 10056, 10035, 10052, 10036, 10037, 10038″

    step3-
    Finally created a string array called ‘fulname’ and split the modified string with ‘,\s’
    Array fulname after split looks like this

    fulname = [ 10054, 10055, 10056, 10035, 10052, 10036, 10037, 10038]

    This will work fine because all the wsdl array return the same type of string with same unwanted characters

    Hope you understood
    Good Luck

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

Sidebar

Related Questions

I am using KSOAP2 to call a .NET webservice from android application,and the response
I have an Android app that fetches data from the web service using ksoap2,
Calling a .net SOAP1.1 web service from android using ksoap2 lib I met a
I am consuming a dotnet webservice on android code using ksoap2.I can successfully call
I want to pass an array from my Android application to my SOAP webservice
I'm using Ksoap2 on Android for connecting Webservice. When I add file Ksoap2.jar downloaded
I'm trying to upload a complex object to a WCF webservice using KSoap2 Android
i tried the example from http://www.helloandroid.com/tutorials/using-ksoap2-android-and-parsing-output-data to get request and response from a wsdl
I'm sending this request to my WCF webservice with a Android client using ksoap2:
I am using KSoap2 for calling web-services for my Android app. I am using

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.