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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:11:55+00:00 2026-05-30T00:11:55+00:00

In my case, I have a soap response which has an ArrayOfArrayOfString type of

  • 0

In my case, I have a soap response which has an “ArrayOfArrayOfString” type of values stored in it.

It is like an Array A[4][4].

A[0][0] -> ServiceId

A[0][1] -> ServiceName

A[0][2] -> ServiceImageURL

A[0][3] -> ServiceDecription

A[0][4] -> ServiceIconURL

and its all same upto A[4][4].

How can I handle this type of response in android?

Code is something like:

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);        

        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        envelope.dotNet = true;

        envelope.setOutputSoapObject(request);

        HttpTransportSE transportSE = new HttpTransportSE(URL);
        transportSE.debug = true;

                                            Log.i("WebService", "msg:try_out");
    String[] columns = null;

    ArrayList<String> rows = new ArrayList<String>();

    try
    {
                                                    Log.i("WebService", "msg:try+in");
        transportSE.call(SOAP_ACTION, envelope);                            
                                                    Log.i("WebService", "msg:SoapObject");


        SoapObject response = (SoapObject)envelope.getResponse();           

                                                    Log.i("WebService", "Response");

try
            {
                // WhaT SHOULD I USE HERE to convert it to 2D Array//
            }
            catch (Exception e)
            {
                e.printStackTrace();
                Log.v("CATCH BLOCK", e.getMessage());
            }
}
        catch (Exception e) 
        {
            e.printStackTrace();
            Log.i("WebService", "msg:Exception error");
            Log.i("WebSerivce", e.getMessage());
            return e.getMessage();
        }

Please help me regarding this.

  • 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-30T00:11:56+00:00Added an answer on May 30, 2026 at 12:11 am

    This is the perfect working code to parse the complex data…

    I am only doing this for A[0][1-4] and according to my soap response modify the code according to ur soap response.

    SoapObject result = (SoapObject)enevlop.getResponse();
    
                String str = result.getProperty(0).toString();
                // add a for loop for ur code and iterate it according to ur soap response and get all the node using getProperty(i);
    
                String str1 = lameParser(str);
    
                textView.setText(""+str1);
    

    Now define lameParser() method:-

        public String lameParser(String input){
    
        String sName=input.substring(input.indexOf("sName=")+6, input.indexOf(";", input.indexOf("sName=")));
    
        int IGoals=Integer.valueOf(input.substring(input.indexOf("iGoals=")+7, input.indexOf(";", input.indexOf("iGoals="))));
    
        String sCountry=input.substring(input.indexOf("sCountry=")+9, input.indexOf(";", input.indexOf("sCountry=")));
    
        String sFlag=input.substring(input.indexOf("sFlag=")+6, input.indexOf(";", input.indexOf("sFlag=")));
    
        return sName+"\n"+Integer.toString(IGoals)+"\n"+sCountry+"\n"+sFlag;
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to have a CXF client which allows me to see the SOAP
I have an application which relies on a soap server to produce content. Additionally
I have an existing database (PostgreSQL in my case), and would like to access
I have the following use case in Mule ESB - Expose a SOAP endpoint
So, I have a product that has custom options. In this case, its color.
I have a PHP SOAP web service, using CakePHP, which is returning a variable
I have problem with axis2+rampart WS-Security response in case of server internal error. When
I have a soap request returning array of User objects. Now I want to
In case I have .NET framework installed in my computer + all the necessary
Here's my case: I have a table view showing contacts. Add button in the

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.